فهرست منبع

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.
Anthony Romano 8 سال پیش
والد
کامیت
9f34d3493d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      integration/member_test.go

+ 1 - 1
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)
 }