mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: fix TestForceNewCluster to wait leader
This commit is contained in:
parent
e9235002f7
commit
d380be8fa1
@ -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()})
|
||||
|
Loading…
x
Reference in New Issue
Block a user