From b7595ebd2f9b224632a5922d0ee8bd085554ce6c Mon Sep 17 00:00:00 2001 From: Zhe Wu Date: Mon, 23 Dec 2024 20:14:26 -0800 Subject: [PATCH] Turn on randomized workload in congestion control simtest (#20690) ## Description Other tests require more fixes. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] REST API: --- crates/sui-benchmark/tests/simtest.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/sui-benchmark/tests/simtest.rs b/crates/sui-benchmark/tests/simtest.rs index b96d3a228bce4..5432976f80907 100644 --- a/crates/sui-benchmark/tests/simtest.rs +++ b/crates/sui-benchmark/tests/simtest.rs @@ -573,6 +573,9 @@ mod test { // Use shared_counter_max_tip to make transactions to have different gas prices. simulated_load_config.use_shared_counter_max_tip = rng.gen_bool(0.25); simulated_load_config.shared_counter_max_tip = rng.gen_range(1..=1000); + + // Always enable the randomized tx workload in this test. + simulated_load_config.randomized_transaction_weight = 1; info!("Simulated load config: {:?}", simulated_load_config); }