Sfoglia il codice sorgente

Merge pull request #2107 from yichengq/304

integration: fix TestForceNewCluster to wait leader
Yicheng Qin 11 anni fa
parent
commit
6bd8c435f9
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      integration/cluster_test.go

+ 1 - 0
integration/cluster_test.go

@@ -158,6 +158,7 @@ func TestForceNewCluster(t *testing.T) {
 		t.Fatalf("unexpected ForceRestart error: %v", err)
 	}
 	defer c.Members[0].Terminate(t)
+	c.waitLeader(t, c.Members[:1])
 
 	// use new http client to init new connection
 	cc = mustNewHTTPClient(t, []string{c.Members[0].URL()})