1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00

device: run fewer iterations in TestUpDown

The high iteration count was useful when TestUpDown
was the nexus of new bugs to investigate.

Now that it has stabilized, that's less valuable.
And it slows down running the tests and crowds out other tests.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder 2021-02-09 08:20:11 -08:00 committed by Jason A. Donenfeld
parent d117d42ae7
commit 465261310b

View File

@ -196,8 +196,8 @@ func TestTwoDevicePing(t *testing.T) {
func TestUpDown(t *testing.T) { func TestUpDown(t *testing.T) {
goroutineLeakCheck(t) goroutineLeakCheck(t)
const itrials = 200 const itrials = 20
const otrials = 10 const otrials = 1
for n := 0; n < otrials; n++ { for n := 0; n < otrials; n++ {
pair := genTestPair(t) pair := genTestPair(t)