Unverified Commit 0f85476c authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #238 from libp2p/fix-global-listen-in-tests

only listen on localhost in tests
parents 3feb6126 e14354d1
......@@ -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)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment