diff --git a/ipilot_test.go b/ipilot_test.go index e8bda2b..b4b6ed0 100644 --- a/ipilot_test.go +++ b/ipilot_test.go @@ -4,7 +4,7 @@ import "testing" func TestGetCurrentIP(t *testing.T) { myip := getLocalIP() - if myip == nil { + if myip == "" { t.Log("could not retrieve current IP") t.Fail() }