This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new 3839bf6  IO683 - Fix broken test
3839bf6 is described below

commit 3839bf6edff42919dbcc96fcfee9a18b58818ee1
Author: Sebb <s...@apache.org>
AuthorDate: Tue Aug 11 11:54:09 2020 +0100

    IO683 - Fix broken test
---
 .../apache/commons/io/input/buffer/CircularBufferInputStreamTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java
 
b/src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java
index 66b13aa..8f2bd7c 100644
--- 
a/src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/io/input/buffer/CircularBufferInputStreamTest.java
@@ -47,7 +47,7 @@ public class CircularBufferInputStreamTest {
                                if (res == -1) {
                                        throw new 
IllegalStateException("Unexpected EOF at offset " + offset);
                                }
-                               if (inputBuffer[offset] != res) {
+                               if (inputBuffer[offset] != (byte) res) { // 
compare as bytes
                                        throw new 
IllegalStateException("Expected " + inputBuffer[offset] + " at offset " + 
offset + ", got " + res);
                                }
                                ++offset;

Reply via email to