From e660af9bf3de1c58df0d0a66f8c005ec4ff7d4a9 Mon Sep 17 00:00:00 2001 From: bingyanglin Date: Mon, 21 Oct 2024 12:25:47 +0000 Subject: [PATCH] Fix reconfiguration tests --- .../iota-e2e-tests/tests/reconfiguration_tests.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/crates/iota-e2e-tests/tests/reconfiguration_tests.rs b/crates/iota-e2e-tests/tests/reconfiguration_tests.rs index 273b677ab57..c60e51d5597 100644 --- a/crates/iota-e2e-tests/tests/reconfiguration_tests.rs +++ b/crates/iota-e2e-tests/tests/reconfiguration_tests.rs @@ -716,8 +716,16 @@ async fn do_test_reconfig_with_committee_change_stress() { let handle2 = test_cluster.spawn_new_validator(v2).await; tokio::join!( - test_cluster.wait_for_epoch_on_node(&handle1, Some(cur_epoch), Duration::from_secs(60)), - test_cluster.wait_for_epoch_on_node(&handle2, Some(cur_epoch), Duration::from_secs(60)) + test_cluster.wait_for_epoch_on_node( + &handle1, + Some(cur_epoch), + Duration::from_secs(300) + ), + test_cluster.wait_for_epoch_on_node( + &handle2, + Some(cur_epoch), + Duration::from_secs(300) + ) ); test_cluster.trigger_reconfiguration().await; @@ -726,7 +734,7 @@ async fn do_test_reconfig_with_committee_change_stress() { .iota_node .with(|node| node.state().epoch_store_for_testing().committee().clone()); cur_epoch = committee.epoch(); - assert_eq!(committee.num_members(), 9); + assert_eq!(committee.num_members(), 7); assert!(committee.authority_exists(&handle1.state().name)); assert!(committee.authority_exists(&handle2.state().name)); removed_validators