Skip to content
Permalink
Browse files
8283756: (zipfs) ZipFSOutputStreamTest.testOutputStream should only c…
…heck inflated bytes

Reviewed-by: jpai, alanb, lancea
  • Loading branch information
simonis committed Mar 28, 2022
1 parent d6fa8b0 commit 0c472c8a4ff01b3bc8fba5df82c24c240586e5c5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -117,7 +117,7 @@ public void testOutputStream(final Map<String, ?> env) throws Exception {
while ((numRead = is.read(buf)) != -1) {
totalRead += numRead;
// verify the content
Assert.assertEquals(Arrays.mismatch(buf, chunk), -1,
Assert.assertEquals(Arrays.mismatch(buf, 0, numRead, chunk, 0, numRead), -1,
"Unexpected content in " + entryPath);
}
System.out.println("Read entry " + entryPath + " of bytes " + totalRead

1 comment on commit 0c472c8

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 0c472c8 Mar 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.