From 25e69d96599b3b82556dd3ecf52da60060368a97 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Mon, 2 Jun 2014 14:43:51 -0700 Subject: [PATCH] fix(multi_node_kill_all_and_recovery_test): ensure cluster is up --- tests/functional/multi_node_kill_all_and_recovery_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functional/multi_node_kill_all_and_recovery_test.go b/tests/functional/multi_node_kill_all_and_recovery_test.go index 404cf972f15..a5f1e1e5826 100644 --- a/tests/functional/multi_node_kill_all_and_recovery_test.go +++ b/tests/functional/multi_node_kill_all_and_recovery_test.go @@ -268,6 +268,12 @@ func TestMultiNodeKillAllAndRecoveryAndRemoveLeader(t *testing.T) { <-leaderChan 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() // kill all