Skip to content

Commit

Permalink
wait 3 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
akiradeveloper committed Nov 6, 2024
1 parent 1328012 commit 21be7ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/sorock-tests/tests/4_n3_multi_raft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ async fn n3_p10_multi_raft_io_roundrobin() -> Result<()> {
}
futures::future::try_join_all(futs).await?;

// Wait for followers to learn the leader.
tokio::time::sleep(std::time::Duration::from_secs(3)).await;

let mut cur_state = [0; P as usize];
for i in 0..100 {
let shard_id = rand::thread_rng().gen_range(0..P);
Expand Down

0 comments on commit 21be7ab

Please sign in to comment.