mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: wait longer for member to be removed
This commit is contained in:
parent
930156c18a
commit
9132098960
@ -308,8 +308,9 @@ func (c *cluster) RemoveMember(t *testing.T, id uint64) {
|
||||
select {
|
||||
case <-m.s.StopNotify():
|
||||
m.Terminate(t)
|
||||
case <-time.After(time.Second):
|
||||
t.Fatalf("failed to remove member %s in one second", m.s.ID())
|
||||
// stop delay / election timeout + 1s disk and network delay
|
||||
case <-time.After(time.Duration(electionTicks)*tickDuration + time.Second):
|
||||
t.Fatalf("failed to remove member %s in time", m.s.ID())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user