Skip to content

Commit

Permalink
Update utils.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jan 2, 2024
1 parent 58d7141 commit 5a761e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions harness/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub async fn wait_for_until_cluster_size_increase(raft: Raft, target: usize) {
}

// Wait for the conf_change reflected to the cluster
sleep(Duration::from_secs_f32(0.1)).await;
sleep(Duration::from_secs_f32(1.0)).await;
}

pub async fn wait_for_until_cluster_size_decrease(raft: Raft, target: usize) {
Expand All @@ -68,5 +68,5 @@ pub async fn wait_for_until_cluster_size_decrease(raft: Raft, target: usize) {
}

// Wait for the conf_change reflected to the cluster
sleep(Duration::from_secs_f32(0.1)).await;
sleep(Duration::from_secs_f32(1.0)).await;
}

0 comments on commit 5a761e2

Please sign in to comment.