Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

only listen on localhost in tests #238

Merged
merged 1 commit into from
Feb 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
only listen on localhost in tests
  • Loading branch information
marten-seemann committed Feb 9, 2021
commit e14354d18955e22055b3eca88f0ce365c6f348e5
2 changes: 1 addition & 1 deletion 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