From 2bec28e1469eae818b430a256cdd3bbaf31f7263 Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Mon, 23 May 2016 20:05:09 -0600 Subject: [PATCH] Fix test Loop should stop whenever a valid ip is found. --- test/monitor_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/monitor_test.go b/test/monitor_test.go index d68c6224..a1da1f0b 100644 --- a/test/monitor_test.go +++ b/test/monitor_test.go @@ -523,6 +523,9 @@ func TestHTTPHost(t *testing.T) { } break } + if ip != nil { + break + } } if ip == nil { t.Fatalf("Could not find non-loopback IPV4 address")