Skip to content

Commit

Permalink
Updated test code to improve OS compatibility
Browse files Browse the repository at this point in the history
Now using `127.0.0.1` instead of `localhost` in `logging_suite_test.go` so the test works on both on GNU/Linux and MacOS
  • Loading branch information
Pierre Delagrave authored Sep 24, 2018
1 parent a6798c6 commit a6ac7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logging/logging_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestJSONCeeLoggingFormatter(t *testing.T) {
RegisterTestingT(t)

port := rand.Intn(65535 - 1080) + 1081
listeningUDPSocket := fmt.Sprintf("localhost:%d", port)
listeningUDPSocket := fmt.Sprintf("127.0.0.1:%d", port)

udp.SetAddr(listeningUDPSocket)
result := udp.ReceiveString(t, func() {
Expand Down

0 comments on commit a6ac7cd

Please sign in to comment.