Skip to content

Commit

Permalink
Improved flaky dial pinger test - calling a local listener
Browse files Browse the repository at this point in the history
  • Loading branch information
eranharel committed May 27, 2021
1 parent 8cce27d commit 298ce7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/ping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() }()

Expand Down

0 comments on commit 298ce7e

Please sign in to comment.