소스 검색

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 9 년 전
부모
커밋
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)
 }