Skip to content

Commit

Permalink
holepunch: skip racy TestDirectDialWorks (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt authored Jul 10, 2023
1 parent 79eee3f commit c67a5d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions p2p/protocol/holepunch/holepunch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit c67a5d4

Please sign in to comment.