From 33c511fb451d22c226ed0088a2223a6f58f9f91b Mon Sep 17 00:00:00 2001 From: Mingwei Tian Date: Thu, 5 Dec 2024 17:10:31 -0800 Subject: [PATCH] add simtest --- crates/sui-benchmark/tests/simtest.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/crates/sui-benchmark/tests/simtest.rs b/crates/sui-benchmark/tests/simtest.rs index 452594e1d68d7..627f3cdcba731 100644 --- a/crates/sui-benchmark/tests/simtest.rs +++ b/crates/sui-benchmark/tests/simtest.rs @@ -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; @@ -173,13 +173,10 @@ mod test { test_cluster.wait_for_epoch_all_nodes(1).await; } - #[ignore("Disabled due to flakiness - re-enable when failure is fixed")] #[sim_test(config = "test_config()")] async fn test_simulated_load_reconfig_restarts() { - // TODO added to invalidate a failing test seed in CI. Remove me - tokio::time::sleep(Duration::from_secs(1)).await; sui_protocol_config::ProtocolConfig::poison_get_for_min_version(); - let test_cluster = build_test_cluster(4, 1000, 1).await; + let test_cluster = build_test_cluster(4, 5_000, 1).await; let node_restarter = test_cluster .random_node_restarter() .with_kill_interval_secs(5, 15) @@ -188,6 +185,13 @@ mod test { test_simulated_load(test_cluster, 120).await; } + #[sim_test(config = "test_config()")] + async fn test_simulated_load_small_committee_reconfig() { + sui_protocol_config::ProtocolConfig::poison_get_for_min_version(); + let test_cluster = build_test_cluster(1, 5_000, 0).await; + test_simulated_load(test_cluster, 120).await; + } + /// Get a list of nodes that we don't want to kill in the crash recovery tests. /// This includes the client node which is the node that is running the test, as well as /// rpc fullnode which are needed to run the benchmark.