Skip to content

Commit

Permalink
fixed test (#3794)
Browse files Browse the repository at this point in the history
Co-authored-by: Hans Moog <[email protected]>
  • Loading branch information
hmoog and hmoog authored Oct 30, 2024
1 parent 5d248a1 commit 5514b64
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/iota-e2e-tests/tests/reconfiguration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,12 +843,11 @@ async fn safe_mode_reconfig_test() {
assert_eq!(system_state.system_state_version, 1);
assert_eq!(system_state.epoch, 0);

// Wait for regular epoch change to happen once. Migration from V1 to V2 should
// happen here.
// Wait for regular epoch change to happen once.
let system_state = test_cluster.wait_for_epoch(Some(1)).await;
assert!(!system_state.safe_mode());
assert_eq!(system_state.epoch(), 1);
assert_eq!(system_state.system_state_version(), 2);
assert_eq!(system_state.system_state_version(), 1);

let prev_epoch_start_timestamp = system_state.epoch_start_timestamp_ms();

Expand Down Expand Up @@ -877,7 +876,7 @@ async fn safe_mode_reconfig_test() {
let system_state = test_cluster.wait_for_epoch(Some(3)).await;
assert!(!system_state.safe_mode());
assert_eq!(system_state.epoch(), 3);
assert_eq!(system_state.system_state_version(), 2);
assert_eq!(system_state.system_state_version(), 1);
}

async fn add_validator_candidate(
Expand Down

0 comments on commit 5514b64

Please sign in to comment.