mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-17 08:17:57 +00:00
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
This commit is contained in:
parent
7b6b92d894
commit
422267de79
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
package bisq.core.util;
|
package bisq.core.util;
|
||||||
|
|
||||||
|
import bisq.core.locale.GlobalSettings;
|
||||||
import bisq.core.locale.Res;
|
import bisq.core.locale.Res;
|
||||||
import bisq.core.monetary.Altcoin;
|
import bisq.core.monetary.Altcoin;
|
||||||
import bisq.core.monetary.Price;
|
import bisq.core.monetary.Price;
|
||||||
|
@ -31,6 +32,7 @@ public class FormattingUtilsTest {
|
||||||
@Before
|
@Before
|
||||||
public void setUp() {
|
public void setUp() {
|
||||||
Locale.setDefault(new Locale("en", "US"));
|
Locale.setDefault(new Locale("en", "US"));
|
||||||
|
GlobalSettings.setLocale(new Locale("en", "US"));
|
||||||
Res.setBaseCurrencyCode("XMR");
|
Res.setBaseCurrencyCode("XMR");
|
||||||
Res.setBaseCurrencyName("Monero");
|
Res.setBaseCurrencyName("Monero");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue