Skip to content

Commit e2b0925

Browse files
committed
8284771: java/util/zip/CloseInflaterDeflaterTest.java failed with "AssertionError: Expected IOException to be thrown, but nothing was thrown"
Backport-of: 7891085a877b8a5715d095e0c0dbaaf5bc8f16bb
1 parent 491d800 commit e2b0925

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/jdk/java/util/zip/CloseInflaterDeflaterTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/**
2525
* @test
26-
* @bug 8193682 8278794
26+
* @bug 8193682 8278794 8284771
2727
* @summary Test Infinite loop while writing on closed Deflater and Inflater.
2828
* @run testng CloseInflaterDeflaterTest
2929
*/
@@ -171,10 +171,11 @@ public void testDeflaterInputStream() throws IOException {
171171
/**
172172
* Test for infinite loop by writing bytes to closed InflaterOutputStream
173173
*
174+
* Note: Disabling this test as it is failing intermittently.
174175
* @param useCloseMethod indicates whether to use Close() or finish() method
175176
* @throws IOException if an error occurs
176177
*/
177-
@Test(dataProvider = "testOutputStreams")
178+
@Test(dataProvider = "testOutputStreams",enabled=false)
178179
public void testInflaterOutputStream(boolean useCloseMethod) throws IOException {
179180
InflaterOutputStream inf = new InflaterOutputStream(outStream);
180181
assertThrows(IOException.class , () -> inf.write(inputBytes, 0, INPUT_LENGTH));

0 commit comments

Comments
 (0)