Skip to content
Snippets Groups Projects

Fix bug in geolocation lookup

Merged Pea Nut requested to merge fix-geolocation-lookup into main
All threads resolved!
Files
2
@@ -26,7 +26,9 @@ func TestGeolocatationInvalidSTUNServersFallback(t *testing.T) {
api.config.STUNServers = []string{"localhost:3478"}
api.config.FallbackCountryCode = "XX"
_, err := api.DoGeolocationLookup()
assert.Nil(t, err)
assert.Error(t, err, "DoGeolocationLookup should return an error here.",
"Indicating an error means the calling function should save/cache the country code")
}
func TestGeolocatationInvalidSTUNServersNoFallback(t *testing.T) {
Loading