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) } }