Disable batcher test under racedetector
This commit is contained in:
parent
39a54dbee4
commit
356d3d15ed
2 changed files with 13 additions and 0 deletions
7
batcher/batcher_race_test.go
Normal file
7
batcher/batcher_race_test.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
//+build race
|
||||
|
||||
package batcher
|
||||
|
||||
func init() {
|
||||
race = true
|
||||
}
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue