Test: reduce size in ByteSizeValueTests.testEquality to avoid double rounding issues

This commit is contained in:
Boaz Leskes 2015-09-25 20:24:11 +02:00
parent 5a0f2fd1ac
commit 00d8a84475
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class ByteSizeValueTests extends ESTestCase {
}
public void testEquality() {
String[] equalValues = new String[]{"2GB", "2048MB", "2097152KB", "2147483684B"};
String[] equalValues = new String[]{"1GB", "1024MB", "1048576KB", "1073741824B"};
ByteSizeValue value1 = ByteSizeValue.parseBytesSizeValue(randomFrom(equalValues), "equalTest");
ByteSizeValue value2 = ByteSizeValue.parseBytesSizeValue(randomFrom(equalValues), "equalTest");
assertThat(value1, equalTo(value2));