Skip to content

Commit

Permalink
Backport 687ea73b00fd047305bfa1dda8187276bfb68dbf
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Feb 11, 2025
1 parent 9c8fe67 commit eaaa4ac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -47,6 +47,7 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.function.Executable;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assumptions.*;

public class InterruptibleOrNot {
// DatagramChannel implementation class
Expand Down Expand Up @@ -98,6 +99,7 @@ public void testInterruptDuringInterruptibleReceive() throws Exception {
*/
@Test
public void testInterruptBeforeUninterruptibleReceive() throws Exception {
assumeFalse(Thread.currentThread().isVirtual());
try (DatagramChannel dc = boundDatagramChannel(false)) {
ByteBuffer buf = ByteBuffer.allocate(100);
onReceive(() -> {
Expand Down

0 comments on commit eaaa4ac

Please sign in to comment.