Skip to content

Commit 411f6b2

Browse files
committed
disable test on jdk24
1 parent 1b1eb52 commit 411f6b2

File tree

1 file changed

+5
-0
lines changed
  • instrumentation/executors/jdk21-testing/src/test/java/io/opentelemetry/javaagent/instrumentation/executors

1 file changed

+5
-0
lines changed

instrumentation/executors/jdk21-testing/src/test/java/io/opentelemetry/javaagent/instrumentation/executors/VirtualThreadTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@
1111
import java.lang.reflect.Method;
1212
import java.util.concurrent.Callable;
1313
import java.util.concurrent.atomic.AtomicBoolean;
14+
import org.junit.jupiter.api.Assumptions;
1415
import org.junit.jupiter.api.Test;
1516

1617
class VirtualThreadTest {
1718

1819
@Test
1920
void testDisableContextPropagation() throws Exception {
21+
// VirtualThread does not have executeOnCarrierThread method in jdk24
22+
Assumptions.assumeTrue(
23+
Double.parseDouble(System.getProperty("java.specification.version")) < 24);
24+
2025
TestRunnable testRunnable = new TestRunnable();
2126
Thread thread = Thread.ofVirtual().start(testRunnable);
2227
thread.join();

0 commit comments

Comments
 (0)