Skip to content

Commit d7a0cd7

Browse files
authored
test: fix dbip test (#5)
1 parent 504981d commit d7a0cd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/dbip.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ mod tests {
1515
let city = result.city.unwrap();
1616
assert_eq!(city.geoname_id, None);
1717
let names = city.names.unwrap();
18-
assert_eq!(names.get("en"), Some("Boston"));
18+
assert_eq!(names.get("en"), Some("Medfield"));
1919

2020
let location = result.location.unwrap();
21-
assert_eq!(location.latitude, Some(42.3601));
22-
assert_eq!(location.longitude, Some(-71.0589));
21+
assert_eq!(location.latitude, Some(42.1876));
22+
assert_eq!(location.longitude, Some(-71.3065));
2323

2424
let subdivisions = result.subdivisions.unwrap();
2525
assert_eq!(subdivisions.len(), 1);
@@ -60,7 +60,7 @@ mod tests {
6060
let result = reader
6161
.lookup(IpAddr::from_str("66.30.184.198").unwrap())
6262
.unwrap();
63-
assert_eq!(result.autonomous_system_number, Some(7922));
63+
assert_eq!(result.autonomous_system_number, Some(7015));
6464
assert_eq!(
6565
result.autonomous_system_organization,
6666
Some("Comcast Cable Communications, LLC")

0 commit comments

Comments
 (0)