8283756: (zipfs) ZipFSOutputStreamTest.testOutputStream should only check inflated bytes

Reviewed-by: jpai, alanb, lancea
This commit is contained in:
Volker Simonis 2022-03-28 13:41:18 +00:00
parent d6fa8b004b
commit 0c472c8a4f

View File

@ -117,7 +117,7 @@ public class ZipFSOutputStreamTest {
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