diff options
Diffstat (limited to 'device/pools_test.go')
-rw-r--r-- | device/pools_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/device/pools_test.go b/device/pools_test.go index a27ccc0..717072f 100644 --- a/device/pools_test.go +++ b/device/pools_test.go @@ -17,6 +17,10 @@ import ( func TestWaitPool(t *testing.T) { var wg sync.WaitGroup trials := int32(100000) + if raceEnabled { + // This test can be very slow with -race. + trials /= 10 + } workers := runtime.NumCPU() + 2 if workers-4 <= 0 { t.Skip("Not enough cores") |