mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix(test): add sleep in createCluster
The problem is that if the master isn't up when the children start then the children have to retry. This retry can take upwards of 15 seconds which slows tests way down and some of them fail.
This commit is contained in:
parent
b36feec757
commit
e0b8771950
8
test.go
8
test.go
@ -74,6 +74,14 @@ func createCluster(size int, procAttr *os.ProcAttr) ([][]string, []*os.Process,
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
// TODOBP: Change this sleep to wait until the master is up.
|
||||
// The problem is that if the master isn't up then the children
|
||||
// have to retry. This retry can take upwards of 15 seconds
|
||||
// which slows tests way down and some of them fail.
|
||||
if i == 0 {
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
return argGroup, etcds, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user