Disable batcher test under racedetector

This commit is contained in:
Fedor Korotkiy 2021-03-05 14:54:34 +03:00
parent 39a54dbee4
commit 356d3d15ed
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,7 @@
//+build race
package batcher
func init() {
race = true
}

View file

@ -85,7 +85,13 @@ func TestStaleRead(t *testing.T) {
wg.Wait()
}
var race = false
func TestSpeed(t *testing.T) {
if race {
t.Skip("this test fails under race detector because of timing issues")
}
defer goleak.VerifyNone(t)
const (