diff --git a/settings_test.go b/settings_test.go index da7efb9..2f606f4 100644 --- a/settings_test.go +++ b/settings_test.go @@ -13,6 +13,11 @@ func TestLoadSetting(t *testing.T) { } if settings.IPUrl == "" { - t.Error("Cannot load ip_url from config file") + t.Error("cannot load ip_url from config file") + } + + err = LoadSettings("./file/does/not/exists", &settings) + if err == nil { + t.Error("file doesn't exist, should return error") } }