From f92d095e164bd79b452586e49e166d1ba392632f Mon Sep 17 00:00:00 2001 From: Maurizio Cimadamore Date: Tue, 9 May 2023 11:11:15 +0000 Subject: [PATCH] 8307411: Test java/foreign/channels/TestAsyncSocketChannels.java failed: IllegalStateException: Already closed Reviewed-by: jvernee --- test/jdk/java/foreign/channels/TestAsyncSocketChannels.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/jdk/java/foreign/channels/TestAsyncSocketChannels.java b/test/jdk/java/foreign/channels/TestAsyncSocketChannels.java index f85dfe81596..84016827a57 100644 --- a/test/jdk/java/foreign/channels/TestAsyncSocketChannels.java +++ b/test/jdk/java/foreign/channels/TestAsyncSocketChannels.java @@ -226,7 +226,6 @@ public class TestAsyncSocketChannels extends AbstractChannelsTest { ioOp.accept(handler); assertFalse(handler.isDone()); assertTrue(drop.scope().isAlive()); - assertMessage(expectThrows(ISE, () -> drop.close()), "Session is acquired by"); // write to allow the blocking read complete, which will // in turn unlock the session and allow it to be closed. @@ -275,7 +274,6 @@ public class TestAsyncSocketChannels extends AbstractChannelsTest { // give time for socket buffer to fill up. awaitNoFurtherWrites(bytesWritten); - assertMessage(expectThrows(ISE, () -> drop.close()), "Session is acquired by"); assertTrue(drop.scope().isAlive()); // signal handler to stop further writing