mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-05 07:13:09 +02:00
Catch log in GeoIP tests (follow-up to #718).
This commit is contained in:
parent
cf19b3b1b4
commit
2d48018b58
|
@ -78,6 +78,7 @@ func GetGeoIpUrlForTest(t *testing.T) string {
|
|||
}
|
||||
|
||||
func TestGeoLookup(t *testing.T) {
|
||||
CatchLogForTest(t)
|
||||
reader, err := NewGeoLookupFromUrl(GetGeoIpUrlForTest(t))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
@ -92,6 +93,7 @@ func TestGeoLookup(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestGeoLookupCaching(t *testing.T) {
|
||||
CatchLogForTest(t)
|
||||
reader, err := NewGeoLookupFromUrl(GetGeoIpUrlForTest(t))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
@ -138,6 +140,7 @@ func TestGeoLookupContinent(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestGeoLookupCloseEmpty(t *testing.T) {
|
||||
CatchLogForTest(t)
|
||||
reader, err := NewGeoLookupFromUrl("ignore-url")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
@ -146,6 +149,7 @@ func TestGeoLookupCloseEmpty(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestGeoLookupFromFile(t *testing.T) {
|
||||
CatchLogForTest(t)
|
||||
geoIpUrl := GetGeoIpUrlForTest(t)
|
||||
|
||||
resp, err := http.Get(geoIpUrl)
|
||||
|
|
Loading…
Reference in a new issue