Skip to content

Commit 185ad54

Browse files
committed
8283756: (zipfs) ZipFSOutputStreamTest.testOutputStream should only check inflated bytes
Backport-of: 0c472c8a4ff01b3bc8fba5df82c24c240586e5c5
1 parent e3dd9dd commit 185ad54

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
@@ -120,7 +120,7 @@ public void testOutputStream(final Map<String, ?> env) throws Exception {
120120
while ((numRead = is.read(buf)) != -1) {
121121
totalRead += numRead;
122122
// verify the content
123-
Assert.assertEquals(Arrays.mismatch(buf, chunk), -1,
123+
Assert.assertEquals(Arrays.mismatch(buf, 0, numRead, chunk, 0, numRead), -1,
124124
"Unexpected content in " + entryPath);
125125
}
126126
System.out.println("Read entry " + entryPath + " of bytes " + totalRead

0 commit comments

Comments
 (0)