mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-18 22:57:47 +01:00
Fix unit test
This commit is contained in:
parent
da7e7edc37
commit
22623aac85
@ -79,7 +79,7 @@ public class GeoIpServiceTest {
|
||||
String result = geoIpService.getCountryCode(ip);
|
||||
|
||||
// then
|
||||
assertThat(result, equalTo("--"));
|
||||
assertThat(result, equalTo("LOCALHOST"));
|
||||
verify(lookupService, never()).getCountry(any());
|
||||
}
|
||||
|
||||
@ -113,7 +113,7 @@ public class GeoIpServiceTest {
|
||||
String result = geoIpService.getCountryName(ip.getHostAddress());
|
||||
|
||||
// then
|
||||
assertThat(result, equalTo("N/A"));
|
||||
assertThat(result, equalTo("LocalHost"));
|
||||
verify(lookupService, never()).getCountry(ip);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user