Skip to content

Commit 3d2523e

Browse files
committed
Merge pull request #825 from unihorn/98
fix(multi_node_kill_all_and_recovery_test): ensure cluster is up
2 parents 707174b + 25e69d9 commit 3d2523e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/functional/multi_node_kill_all_and_recovery_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@ func TestMultiNodeKillAllAndRecoveryAndRemoveLeader(t *testing.T) {
268268
<-leaderChan
269269
stop <- true
270270

271+
// It needs some time to sync current commits and write it to disk.
272+
// Or some instance may be restarted as a new peer, and we don't support
273+
// to connect back the old cluster that doesn't have majority alive
274+
// without log now.
275+
time.Sleep(time.Second)
276+
271277
c.SyncCluster()
272278

273279
// kill all

0 commit comments

Comments
 (0)