From 9f34d3493da7a35adbb8ae4e79324469c5679dab Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Wed, 22 Mar 2017 12:42:49 -0700 Subject: [PATCH] integration: wait on leader before progress check in TestRestartMember In rare cases, the last member may not have the leader by the time the final cluster progress check tries to open a watch, causing a timeout. --- integration/member_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/member_test.go b/integration/member_test.go index 8ac8f772b..501d91838 100644 --- a/integration/member_test.go +++ b/integration/member_test.go @@ -61,7 +61,7 @@ func TestRestartMember(t *testing.T) { t.Fatal(err) } } - + c.waitLeader(t, c.Members) clusterMustProgress(t, c.Members) }