summaryrefslogtreecommitdiffstats
path: root/model/utils_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/utils_test.go')
-rw-r--r--model/utils_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/model/utils_test.go b/model/utils_test.go
index 94ee55aa9..bc2aa6ce7 100644
--- a/model/utils_test.go
+++ b/model/utils_test.go
@@ -193,6 +193,12 @@ func TestIsValidAlphaNum(t *testing.T) {
}
}
+func TestGetServerIpAddress(t *testing.T) {
+ if len(GetServerIpAddress()) == 0 {
+ t.Fatal("Should find local ip address")
+ }
+}
+
func TestIsValidAlphaNumHyphenUnderscore(t *testing.T) {
casesWithFormat := []struct {
Input string