From 6bf5c324025a6f4de04fc179fd48c54fe7b8f796 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Wed, 25 Jan 2023 15:11:52 +0800 Subject: [PATCH] MDL-77036 core_iplookup: update test_ipv4 test expectations --- iplookup/tests/geoplugin_test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iplookup/tests/geoplugin_test.php b/iplookup/tests/geoplugin_test.php index 20151cb4a8f..8b66e1e6d87 100644 --- a/iplookup/tests/geoplugin_test.php +++ b/iplookup/tests/geoplugin_test.php @@ -45,12 +45,12 @@ class geoplugin_test extends \advanced_testcase { $result = iplookup_find_location('50.0.184.0'); $this->assertEquals('array', gettype($result)); - $this->assertEquals('San Francisco', $result['city']); - $this->assertEqualsWithDelta(-122.3933, $result['longitude'], 0.1, 'Coordinates are out of accepted tolerance'); - $this->assertEqualsWithDelta(37.7697, $result['latitude'], 0.1, 'Coordinates are out of accepted tolerance'); + $this->assertEquals('Santa Rosa', $result['city']); + $this->assertEqualsWithDelta(-122.7128, $result['longitude'], 0.1, 'Coordinates are out of accepted tolerance'); + $this->assertEqualsWithDelta(38.4354, $result['latitude'], 0.1, 'Coordinates are out of accepted tolerance'); $this->assertNull($result['error']); $this->assertEquals('array', gettype($result['title'])); - $this->assertEquals('San Francisco', $result['title'][0]); + $this->assertEquals('Santa Rosa', $result['title'][0]); $this->assertEquals('United States', $result['title'][1]); }