From e14354d18955e22055b3eca88f0ce365c6f348e5 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Tue, 9 Feb 2021 11:12:34 +0800 Subject: [PATCH] only listen on localhost in tests --- dial_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dial_test.go b/dial_test.go index 6462d7e1..9fc5df41 100644 --- a/dial_test.go +++ b/dial_test.go @@ -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) }