From d117d42ae74d276cd986337d218bd9f4220c789e Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 9 Feb 2021 08:18:47 -0800 Subject: device: run fewer trials in TestWaitPool when race detector enabled On a many-core machine with the race detector enabled, this test can take several minutes to complete. Signed-off-by: Josh Bleecher Snyder --- device/race_disabled_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 device/race_disabled_test.go (limited to 'device/race_disabled_test.go') diff --git a/device/race_disabled_test.go b/device/race_disabled_test.go new file mode 100644 index 0000000..65fac7e --- /dev/null +++ b/device/race_disabled_test.go @@ -0,0 +1,10 @@ +//+build !race + +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved. + */ + +package device + +const raceEnabled = false -- cgit v1.2.3