Explorar el Código

Merge pull request #2107 from yichengq/304

integration: fix TestForceNewCluster to wait leader
Yicheng Qin hace 11 años
padre
commit
6bd8c435f9
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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()})