Skip to content

Commit 9a0e875

Browse files
committed
8307411: Test java/foreign/channels/TestAsyncSocketChannels.java failed: IllegalStateException: Already closed
Reviewed-by: lucy Backport-of: f92d095e164bd79b452586e49e166d1ba392632f
1 parent e913fa7 commit 9a0e875

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/jdk/java/foreign/channels/TestAsyncSocketChannels.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ public void testCloseWithOutstandingRead(Supplier<ResourceScope> scopeSupplier,
221221
ioOp.accept(handler);
222222
assertFalse(handler.isDone());
223223
assertTrue(scope.isAlive());
224-
assertMessage(expectThrows(ISE, () -> scope.close()), "Scope is acquired by");
225224

226225
// write to allow the blocking read complete, which will
227226
// in turn unlock the scope and allow it to be closed.
@@ -270,7 +269,6 @@ public void completed(Long result, Void att) {
270269
// give time for socket buffer to fill up.
271270
awaitNoFurtherWrites(bytesWritten);
272271

273-
assertMessage(expectThrows(ISE, () -> scope.close()), "Scope is acquired by");
274272
assertTrue(scope.isAlive());
275273

276274
// signal handler to stop further writing

0 commit comments

Comments
 (0)