Skip to content

Commit

Permalink
add simtest
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtian committed Dec 6, 2024
1 parent 0adacc0 commit 2256f9f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/sui-benchmark/tests/simtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod test {
LocalValidatorAggregatorProxy, ValidatorProxy,
};
use sui_config::node::AuthorityOverloadConfig;
use sui_config::{ExecutionCacheConfig, AUTHORITIES_DB_NAME, SUI_KEYSTORE_FILENAME};
use sui_config::{AUTHORITIES_DB_NAME, SUI_KEYSTORE_FILENAME};
use sui_core::authority::authority_store_tables::AuthorityPerpetualTables;
use sui_core::authority::framework_injection;
use sui_core::authority::AuthorityState;
Expand Down Expand Up @@ -1142,4 +1142,11 @@ mod test {

let _ = futures::join!(bench_task, surfer_task);
}

#[sim_test(config = "test_config()")]
async fn test_simulated_load_one_authority() {
sui_protocol_config::ProtocolConfig::poison_get_for_min_version();
let test_cluster = build_test_cluster(1, 0, 1).await;
test_simulated_load(test_cluster, 15).await;
}
}

0 comments on commit 2256f9f

Please sign in to comment.