mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #825 from unihorn/98
fix(multi_node_kill_all_and_recovery_test): ensure cluster is up
This commit is contained in:
commit
3d2523e7e0
@ -268,6 +268,12 @@ func TestMultiNodeKillAllAndRecoveryAndRemoveLeader(t *testing.T) {
|
|||||||
<-leaderChan
|
<-leaderChan
|
||||||
stop <- true
|
stop <- true
|
||||||
|
|
||||||
|
// It needs some time to sync current commits and write it to disk.
|
||||||
|
// Or some instance may be restarted as a new peer, and we don't support
|
||||||
|
// to connect back the old cluster that doesn't have majority alive
|
||||||
|
// without log now.
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
|
||||||
c.SyncCluster()
|
c.SyncCluster()
|
||||||
|
|
||||||
// kill all
|
// kill all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user