From 422267de796844cef9a1d0ae75bf645c899fc44a Mon Sep 17 00:00:00 2001 From: premek <1145361+premek@users.noreply.github.com> Date: Thu, 13 Jan 2022 21:27:51 +0100 Subject: [PATCH] FormattingUtilsTest locale fix This test was failing sometimes (not consistently) on a system with non-en locale. GlobalSettings.setLocale is used in other tests like this --- core/src/test/java/bisq/core/util/FormattingUtilsTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/test/java/bisq/core/util/FormattingUtilsTest.java b/core/src/test/java/bisq/core/util/FormattingUtilsTest.java index b2d4b2a7..c93c5bdb 100644 --- a/core/src/test/java/bisq/core/util/FormattingUtilsTest.java +++ b/core/src/test/java/bisq/core/util/FormattingUtilsTest.java @@ -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; @@ -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"); }