From f4c7eb54aa08b0dbb62e6874704fbf1a4c85ee32 Mon Sep 17 00:00:00 2001 From: Sylvain Rabot Date: Thu, 10 Dec 2020 16:16:54 +0100 Subject: [PATCH] Fix test not waiting for cluster member to be ready Signed-off-by: Sylvain Rabot --- cluster/cluster_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster/cluster_test.go b/cluster/cluster_test.go index 36ed4203..1b73021e 100644 --- a/cluster/cluster_test.go +++ b/cluster/cluster_test.go @@ -87,6 +87,7 @@ func testJoinLeave(t *testing.T) { ) require.NoError(t, err) go p2.Settle(context.Background(), 0*time.Second) + p2.WaitReady() require.Equal(t, 2, p.ClusterSize()) p2.Leave(0 * time.Second)