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