Skip to content

Commit 0c472c8

Browse files
committed
8283756: (zipfs) ZipFSOutputStreamTest.testOutputStream should only check inflated bytes
Reviewed-by: jpai, alanb, lancea
1 parent d6fa8b0 commit 0c472c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void testOutputStream(final Map<String, ?> env) throws Exception {
117117
while ((numRead = is.read(buf)) != -1) {
118118
totalRead += numRead;
119119
// verify the content
120-
Assert.assertEquals(Arrays.mismatch(buf, chunk), -1,
120+
Assert.assertEquals(Arrays.mismatch(buf, 0, numRead, chunk, 0, numRead), -1,
121121
"Unexpected content in " + entryPath);
122122
}
123123
System.out.println("Read entry " + entryPath + " of bytes " + totalRead

0 commit comments

Comments
 (0)