Add test cases

This commit is contained in:
2022-08-13 20:57:43 +01:00
parent aa3c0c74f3
commit 8c9e9fe2cc

View File

@@ -4,7 +4,7 @@ import "testing"
func TestGetCurrentIP(t *testing.T) { func TestGetCurrentIP(t *testing.T) {
myip := getLocalIP() myip := getLocalIP()
if myip == nil { if myip == "" {
t.Log("could not retrieve current IP") t.Log("could not retrieve current IP")
t.Fail() t.Fail()
} }