From: Josh Bleecher Snyder Date: Tue, 9 Feb 2021 16:20:11 +0000 (-0800) Subject: device: run fewer iterations in TestUpDown X-Git-Tag: 0.0.20210212~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=465261310b55898c3f67809bd56d58442bca4554;p=thirdparty%2Fwireguard-go.git 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 --- diff --git a/device/device_test.go b/device/device_test.go index 8f16207..ce1ba9b 100644 --- a/device/device_test.go +++ b/device/device_test.go @@ -196,8 +196,8 @@ func TestTwoDevicePing(t *testing.T) { func TestUpDown(t *testing.T) { goroutineLeakCheck(t) - const itrials = 200 - const otrials = 10 + const itrials = 20 + const otrials = 1 for n := 0; n < otrials; n++ { pair := genTestPair(t)