diff --git a/checks/ping_test.go b/checks/ping_test.go index 99f0b31..bab70fd 100644 --- a/checks/ping_test.go +++ b/checks/ping_test.go @@ -66,7 +66,7 @@ func TestNewDialPinger_bogusAddress(t *testing.T) { func TestNewDialPinger_existingAddress(t *testing.T) { assertions := assert.New(t) - ln, err := net.Listen("tcp", ":0") + ln, err := net.Listen("tcp", "127.0.0.1:0") require.NoError(t, err, "failed to start a test listener") defer func() { _ = ln.Close() }()