Skip to content

Commit fb42b20

Browse files
committed
test: disable TestPeriodicRefresh when the race detector is enabled
1 parent a9214b7 commit fb42b20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dht_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ func TestPeriodicRefresh(t *testing.T) {
835835
if testing.Short() {
836836
t.SkipNow()
837837
}
838+
if detectrace.WithRace() {
839+
t.Skip("skipping due to race detector max goroutines")
840+
}
838841

839842
ctx, cancel := context.WithCancel(context.Background())
840843
defer cancel()

0 commit comments

Comments
 (0)