mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix #14161
Signed-off-by: chavacava <salvadorcavadini+github@gmail.com>
This commit is contained in:
parent
cabdb13dad
commit
0887d9acf1
@ -112,14 +112,14 @@ func TestDialTimeout(t *testing.T) {
|
|||||||
|
|
||||||
for i, cfg := range testCfgs {
|
for i, cfg := range testCfgs {
|
||||||
donec := make(chan error, 1)
|
donec := make(chan error, 1)
|
||||||
go func(cfg Config) {
|
go func(cfg Config, i int) {
|
||||||
// without timeout, dial continues forever on ipv4 black hole
|
// without timeout, dial continues forever on ipv4 black hole
|
||||||
c, err := NewClient(t, cfg)
|
c, err := NewClient(t, cfg)
|
||||||
if c != nil || err == nil {
|
if c != nil || err == nil {
|
||||||
t.Errorf("#%d: new client should fail", i)
|
t.Errorf("#%d: new client should fail", i)
|
||||||
}
|
}
|
||||||
donec <- err
|
donec <- err
|
||||||
}(cfg)
|
}(cfg, i)
|
||||||
|
|
||||||
time.Sleep(10 * time.Millisecond)
|
time.Sleep(10 * time.Millisecond)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user