diff --git a/p2p/protocol/holepunch/holepunch_test.go b/p2p/protocol/holepunch/holepunch_test.go index 9cf57ff65c..29d589cd7a 100644 --- a/p2p/protocol/holepunch/holepunch_test.go +++ b/p2p/protocol/holepunch/holepunch_test.go @@ -102,6 +102,10 @@ func TestNoHolePunchIfDirectConnExists(t *testing.T) { } func TestDirectDialWorks(t *testing.T) { + if race.WithRace() { + t.Skip("modifying manet.Private4 is racy") + } + // mark all addresses as public cpy := manet.Private4 manet.Private4 = []*net.IPNet{}