Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielxiangzl committed Dec 18, 2024
1 parent e3eb8e3 commit 8c69113
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions testsuite/forge-cli/src/suites/realistic_environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,13 @@ pub(crate) fn realistic_env_sweep_wrap(
pub(crate) fn realistic_env_load_sweep_test() -> ForgeConfig {
realistic_env_sweep_wrap(10, 5, LoadVsPerfBenchmark {
test: Box::new(PerformanceBenchmark),
workloads: Workloads::TPS(vec![1000, 5000, 10000, 12000, 13000, 14000, 15000]),
workloads: Workloads::TPS(vec![1000, 2500, 5000, 7500, 10000]),
criteria: [
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
]
.into_iter()
.map(
Expand Down
3 changes: 2 additions & 1 deletion testsuite/testcases/src/performance_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ impl NetworkLoadTest for PerformanceBenchmark {
duration: Duration,
) -> Result<()> {
let validators = { swarm.read().await.get_validator_clients_with_names() };
let num_bad_leaders = validators.len() / 5;
// 10 vals, test 1,2,3 failures
let num_bad_leaders = 3;
for (name, validator) in validators[..num_bad_leaders].iter() {
validator
.set_failpoint(
Expand Down

0 comments on commit 8c69113

Please sign in to comment.