Skip to content

Commit

Permalink
Revert "increase timeout"
Browse files Browse the repository at this point in the history
This reverts commit 316c59a.
  • Loading branch information
dhiaayachi committed Sep 23, 2021
1 parent 0a06901 commit 5778b92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions raft_test.go
Expand Up @@ -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())
Expand Down Expand Up @@ -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)
}
}

0 comments on commit 5778b92

Please sign in to comment.