mirror of
https://git.zx2c4.com/wireguard-go
synced 2024-11-15 01:05:15 +01:00
device: increase timeout in tests
When running many concurrent test processing using https://godoc.org/golang.org/x/tools/cmd/stress the processing sometimes cannot complete a ping in under 300ms. Increase the timeout to 5s to reduce the rate of false positives. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
fc0aabbae9
commit
db1edc7e91
@ -112,7 +112,7 @@ func TestTwoDevicePing(t *testing.T) {
|
|||||||
if !bytes.Equal(msg2to1, msgRecv) {
|
if !bytes.Equal(msg2to1, msgRecv) {
|
||||||
t.Error("ping did not transit correctly")
|
t.Error("ping did not transit correctly")
|
||||||
}
|
}
|
||||||
case <-time.After(300 * time.Millisecond):
|
case <-time.After(5 * time.Second):
|
||||||
t.Error("ping did not transit")
|
t.Error("ping did not transit")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -125,7 +125,7 @@ func TestTwoDevicePing(t *testing.T) {
|
|||||||
if !bytes.Equal(msg1to2, msgRecv) {
|
if !bytes.Equal(msg1to2, msgRecv) {
|
||||||
t.Error("return ping did not transit correctly")
|
t.Error("return ping did not transit correctly")
|
||||||
}
|
}
|
||||||
case <-time.After(300 * time.Millisecond):
|
case <-time.After(5 * time.Second):
|
||||||
t.Error("return ping did not transit")
|
t.Error("return ping did not transit")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user