Skip to content

Commit

Permalink
8283756: (zipfs) ZipFSOutputStreamTest.testOutputStream should only c…
Browse files Browse the repository at this point in the history
…heck inflated bytes

Backport-of: 0c472c8a4ff01b3bc8fba5df82c24c240586e5c5
  • Loading branch information
MBaesken committed Jun 7, 2023
1 parent ac9c696 commit ef86ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java
Expand Up @@ -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
Expand Down

1 comment on commit ef86ea2

@openjdk-notifier
Copy link

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.