From 8c9e9fe2cc68268dbe06508e9aca5936009a2174 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sat, 13 Aug 2022 20:57:43 +0100 Subject: [PATCH] Add test cases --- ipilot_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }