From 5778b92f44948f2a08081a816a562d67d948a6cb Mon Sep 17 00:00:00 2001 From: Dhia Ayachi Date: Thu, 23 Sep 2021 15:41:54 -0400 Subject: [PATCH] Revert "increase timeout" This reverts commit 316c59ad1f9b993548b4778870c35673260f51a2. --- raft_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/raft_test.go b/raft_test.go index a1c931a8c..20b4cd628 100644 --- a/raft_test.go +++ b/raft_test.go @@ -2382,7 +2382,6 @@ func TestRaft_RemovedFollower_Vote(t *testing.T) { if configuration := c.getConfiguration(followers[1]); len(configuration.Servers) != 2 { t.Fatalf("too many peers") } - waitforState(followerRemoved, Follower) // The removed node should be still in Follower state require.Equal(t, Follower, followerRemoved.getState()) @@ -2422,8 +2421,8 @@ func TestRaft_RemovedFollower_Vote(t *testing.T) { func waitforState(follower *Raft, state RaftState) { count := 0 - for follower.getState() != state && count < 5000 { + for follower.getState() != state && count < 1000 { count++ - time.Sleep(10 * time.Millisecond) + time.Sleep(1 * time.Millisecond) } }