Closed jswolf19 closed 2 years ago
It seems that my OS language being Japanese is also relevant. When I switch it to English, the test passes.
I can see four options.
expected.getDisplayCountry(Locale.ENGLISH)
.Locale.setDefault(Locale.ENGLISH)
to enforce that the display locale is not dependent on the environment. If tests are done in parallel, this could cause trouble elsewhere as this is changing global state.Fixed
@VREMSoftwareDevelopment fix confirmed, thanks!
I'm getting a failure on the test
testFindCorrectlyPopulatesCountryCodeAndName
, specifically the assertion thatexpected.displayCountry
does not equalactual.countryName(expected)
.I'm not sure what is expected with this assertion (or why it is necessary to test), nor do I know why it does not behave as expected in my environment.
I'm running Windows 10 20H2 19042.1266, android studio 2020.3.1 Patch 2, adoptopenjdk 11.0.12.7-hotspot