Skip to content

Commit

Permalink
Fix UserCountryNotSetValidatorLocaleTest fail if System.getProperty("…
Browse files Browse the repository at this point in the history
…user.country") is already null. (when LANG=C and openjdk in linux).
  • Loading branch information
tttomat19 committed Mar 25, 2021
1 parent ff70524 commit 9cfcd06
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public void run() {
}).setAfterAllCustomizer(new Runnable() {
@Override
public void run() {
System.setProperty("user.country", userCountry);
if (userCountry != null) {
System.setProperty("user.country", userCountry);
}
System.setProperty("user.language", userLanguage);
}
});
Expand Down

0 comments on commit 9cfcd06

Please sign in to comment.