fix(cli/geoip): correct typos in tests (#710)

This commit is contained in:
ParitoshKabra 2022-05-06 13:50:57 +05:30 committed by GitHub
parent d3c5196474
commit d984c2dac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,18 +117,18 @@ func TestMaybeLookupLocationSuccess(t *testing.T) {
t.Fatal("invalid log level")
}
if entry.Message != "Looked up your location" {
t.Fatal("invalid .Message")
t.Fatal("invalid Message")
}
if entry.Fields["asn"].(string) != "AS30722" {
t.Fatal("invalid asn")
}
if entry.Fields["country_code"].(string) != "IT" {
t.Fatal("invalid asn")
t.Fatal("invalid country code")
}
if entry.Fields["network_name"].(string) != "Vodafone Italia S.p.A." {
t.Fatal("invalid asn")
t.Fatal("invalid network name")
}
if entry.Fields["ip"].(string) != "130.25.90.216" {
t.Fatal("invalid asn")
t.Fatal("invalid ip")
}
}