Skip to content

Commit 5ada5e8

Browse files
committed
This test appears to be locale sensitive, so fix the locale in the test
1 parent e61f1bb commit 5ada5e8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎utils/test/com/cloud/utils/NumbersUtilTest.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818

1919
import static org.junit.Assert.*;
2020

21+
import java.util.Locale;
22+
2123
import org.junit.Test;
2224

2325
public class NumbersUtilTest {
2426

2527
@Test
2628
public void formattingCheck() {
29+
Locale.setDefault(Locale.US); // Fixed locale for the test
2730
long size = 1024*1024*1024;
2831
String formatted = NumbersUtil.toReadableSize(size);
2932
assertEquals("1.00 GB", formatted);

0 commit comments

Comments
 (0)