Skip to content

Commit

Permalink
FormattingUtilsTest locale fix
Browse files Browse the repository at this point in the history
This test was failing sometimes (not consistently) on a system with non-en locale. GlobalSettings.setLocale is used in other tests like this
  • Loading branch information
premek authored and woodser committed Jan 14, 2022
1 parent 7b6b92d commit 422267d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/test/java/bisq/core/util/FormattingUtilsTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package bisq.core.util;

import bisq.core.locale.GlobalSettings;
import bisq.core.locale.Res;
import bisq.core.monetary.Altcoin;
import bisq.core.monetary.Price;
Expand Down Expand Up @@ -31,6 +32,7 @@ public class FormattingUtilsTest {
@Before
public void setUp() {
Locale.setDefault(new Locale("en", "US"));
GlobalSettings.setLocale(new Locale("en", "US"));
Res.setBaseCurrencyCode("XMR");
Res.setBaseCurrencyName("Monero");
}
Expand Down

0 comments on commit 422267d

Please sign in to comment.