Skip to content

Commit

Permalink
make less runs for invariant for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
error2215 committed Feb 2, 2024
1 parent 8c08312 commit e40e7f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions spark/tests/it/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ impl TestConfig {
}
for (_, SuiteResult { test_results, .. }) in suite_result {
for (test_name, result) in test_results {
if self.should_fail && (result.status == TestStatus::Success) ||
!self.should_fail && (result.status == TestStatus::Failure)
if self.should_fail && (result.status == TestStatus::Success)
|| !self.should_fail && (result.status == TestStatus::Failure)
{
let logs = decode_console_logs(&result.logs);
let outcome = if self.should_fail { "fail" } else { "pass" };
Expand Down Expand Up @@ -113,7 +113,7 @@ pub fn test_opts() -> TestOptions {
},
},
invariant: InvariantConfig {
runs: 256,
runs: 128,
depth: 15,
fail_on_revert: false,
call_override: false,
Expand Down
10 changes: 5 additions & 5 deletions spark/tests/it/invariant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ use tracing_subscriber::EnvFilter;

#[tokio::test(flavor = "multi_thread")]
async fn test_invariant() {
let filter =
EnvFilter::builder().with_default_directive(LevelFilter::TRACE.into()).from_env().unwrap();

tracing_subscriber::fmt().with_env_filter(filter).compact().init();

let mut runner = runner().await;

let results = runner
Expand Down Expand Up @@ -118,6 +113,11 @@ async fn test_invariant_override() {

#[tokio::test(flavor = "multi_thread")]
async fn test_invariant_storage() {
let filter =
EnvFilter::builder().with_default_directive(LevelFilter::TRACE.into()).from_env().unwrap();

tracing_subscriber::fmt().with_env_filter(filter).compact().init();

let mut runner = runner().await;

let mut opts = test_opts();
Expand Down

0 comments on commit e40e7f3

Please sign in to comment.