Skip to content

Commit

Permalink
Use lower default depth for zksync test config and revert slow-timeou…
Browse files Browse the repository at this point in the history
…t change
  • Loading branch information
elfedy committed Dec 20, 2024
1 parent 3b14a35 commit 0e5ad05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[profile.default]
retries = { backoff = "exponential", count = 2, delay = "2s", jitter = true }
slow-timeout = { period = "2m", terminate-after = 3 }
slow-timeout = { period = "1m", terminate-after = 3 }

[[profile.default.overrides]]
filter = "test(/ext_integration|can_test_forge_std/)"
Expand Down
1 change: 1 addition & 0 deletions crates/forge/tests/it/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ impl ForgeTestProfile {
zk_config.zksync.optimizer_mode = '3';
zk_config.zksync.zksolc = Some(foundry_config::SolcReq::Version(Version::new(1, 5, 7)));
zk_config.fuzz.no_zksync_reserved_addresses = true;
zk_config.invariant.depth = 15;

zk_config
}
Expand Down
4 changes: 1 addition & 3 deletions crates/forge/tests/it/zk/invariant.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Invariant tests
/*
use std::sync::Arc;

use crate::{config::*, test_helpers::TEST_DATA_DEFAULT};
Expand All @@ -16,11 +15,10 @@ async fn test_zk_invariant_deposit() {
let mut config = Config::clone(&runner.config);
config.invariant.no_zksync_reserved_addresses = true;
config.invariant.fail_on_revert = true;
config.invariant.runs = 1;
config.invariant.runs = 10;
runner.config = Arc::new(config);

let filter = Filter::new(".*", "ZkInvariantTest", ".*");

TestConfig::with_filter(runner, filter).spec_id(SpecId::SHANGHAI).run().await;
}
*/

0 comments on commit 0e5ad05

Please sign in to comment.