Skip to content

Commit

Permalink
Merge pull request #238 from libp2p/fix-global-listen-in-tests
Browse files Browse the repository at this point in the history
only listen on localhost in tests
  • Loading branch information
Stebalien committed Feb 9, 2021
2 parents 80963f8 + 6e0d187 commit 412d8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/net/swarm/dial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func TestSimultDials(t *testing.T) {

func newSilentPeer(t *testing.T) (peer.ID, ma.Multiaddr, net.Listener) {
dst := testutil.RandPeerIDFatal(t)
lst, err := net.Listen("tcp4", ":0")
lst, err := net.Listen("tcp4", "localhost:0")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 412d8c3

Please sign in to comment.