Skip to content

Commit 3839bf6

Browse files
committed
IO683 - Fix broken test
1 parent 0d2bd41 commit 3839bf6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void testRandomRead() throws Exception {
4747
if (res == -1) {
4848
throw new IllegalStateException("Unexpected EOF at offset " + offset);
4949
}
50-
if (inputBuffer[offset] != res) {
50+
if (inputBuffer[offset] != (byte) res) { // compare as bytes
5151
throw new IllegalStateException("Expected " + inputBuffer[offset] + " at offset " + offset + ", got " + res);
5252
}
5353
++offset;

0 commit comments

Comments
 (0)