fix(cli/geoip): correct typos in tests (#710)
This commit is contained in:
parent
d3c5196474
commit
d984c2dac8
|
@ -117,18 +117,18 @@ func TestMaybeLookupLocationSuccess(t *testing.T) {
|
||||||
t.Fatal("invalid log level")
|
t.Fatal("invalid log level")
|
||||||
}
|
}
|
||||||
if entry.Message != "Looked up your location" {
|
if entry.Message != "Looked up your location" {
|
||||||
t.Fatal("invalid .Message")
|
t.Fatal("invalid Message")
|
||||||
}
|
}
|
||||||
if entry.Fields["asn"].(string) != "AS30722" {
|
if entry.Fields["asn"].(string) != "AS30722" {
|
||||||
t.Fatal("invalid asn")
|
t.Fatal("invalid asn")
|
||||||
}
|
}
|
||||||
if entry.Fields["country_code"].(string) != "IT" {
|
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." {
|
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" {
|
if entry.Fields["ip"].(string) != "130.25.90.216" {
|
||||||
t.Fatal("invalid asn")
|
t.Fatal("invalid ip")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user