mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: fix TestForceNewCluster
This commit is contained in:
parent
c4e4a9711f
commit
68fdd70580
@ -159,6 +159,9 @@ func TestForceNewCluster(t *testing.T) {
|
||||
}
|
||||
defer c.Members[0].Terminate(t)
|
||||
|
||||
// use new http client to init new connection
|
||||
cc = mustNewHTTPClient(t, []string{c.Members[0].URL()})
|
||||
kapi = client.NewKeysAPI(cc)
|
||||
// ensure force restart keep the old data, and new cluster can make progress
|
||||
ctx, cancel = context.WithTimeout(context.Background(), requestTimeout)
|
||||
if _, err := kapi.Watch("/foo", resp.Node.ModifiedIndex).Next(ctx); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user