Skip to content

Commit

Permalink
Test: reduce size in ByteSizeValueTests.testEquality to avoid double …
Browse files Browse the repository at this point in the history
…rounding issues
  • Loading branch information
bleskes committed Sep 25, 2015
1 parent 5d07ab1 commit eb2c1b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void testSimple() {
}

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));
Expand Down

0 comments on commit eb2c1b0

Please sign in to comment.