Test: reduce size in ByteSizeValueTests.testEquality to avoid double rounding issues
This commit is contained in:
parent
5a0f2fd1ac
commit
00d8a84475
|
@ -58,7 +58,7 @@ public class ByteSizeValueTests extends ESTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testEquality() {
|
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 value1 = ByteSizeValue.parseBytesSizeValue(randomFrom(equalValues), "equalTest");
|
||||||
ByteSizeValue value2 = ByteSizeValue.parseBytesSizeValue(randomFrom(equalValues), "equalTest");
|
ByteSizeValue value2 = ByteSizeValue.parseBytesSizeValue(randomFrom(equalValues), "equalTest");
|
||||||
assertThat(value1, equalTo(value2));
|
assertThat(value1, equalTo(value2));
|
||||||
|
|
Loading…
Reference in New Issue