Skip to content

Commit

Permalink
Fix the test
Browse files Browse the repository at this point in the history
Signed-off-by: JmPotato <[email protected]>
  • Loading branch information
JmPotato committed Jun 20, 2022
1 parent 62d5667 commit d095bef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/server/member/member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,8 @@ func waitEtcdLeaderChange(re *require.Assertions, server *tests.TestServer, old
if err != nil {
return false
}
if leader == old {
// Priority check could be slow. So we sleep longer here.
time.Sleep(5 * time.Second)
}
return leader != old
})
}, testutil.WithWaitFor(time.Second*90), testutil.WithSleepInterval(time.Second))
return leader
}

Expand Down

0 comments on commit d095bef

Please sign in to comment.