Fix my networks cache validation

This commit is contained in:
Daniel 2021-04-19 14:06:00 +02:00
parent 6f9d17bba2
commit edd0d6e834
2 changed files with 13 additions and 8 deletions

View file

@ -13,7 +13,7 @@ func init() {
flag.BoolVar(&privileged, "privileged", false, "run tests that require root/admin privileges")
}
func TestGetApproximateInternetLocation(t *testing.T) {
func TestGetInternetLocation(t *testing.T) {
if testing.Short() {
t.Skip()
}
@ -21,9 +21,9 @@ func TestGetApproximateInternetLocation(t *testing.T) {
t.Skip("skipping privileged test, active with -privileged argument")
}
loc, err := GetInternetLocation()
if err != nil {
t.Fatalf("GetApproximateInternetLocation failed: %s", err)
loc, ok := GetInternetLocation()
if !ok {
t.Fatal("GetApproximateInternetLocation failed")
}
t.Logf("GetApproximateInternetLocation: %+v", loc)
}