We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38a638b commit ed47b7fCopy full SHA for ed47b7f
src/test/java/org/junit/internal/runners/statements/FailOnTimeoutTest.java
@@ -184,6 +184,8 @@ private void notTheRealCauseOfTheTimeout() {
184
@Test
185
public void lookingForStuckThread_threadGroupNotLeaked() throws Throwable {
186
assumeTrue(lookingForStuckThread);
187
+ assumeTrue("Thread groups can no longer be destroyed on JDK 16 and later", System.getProperty("java.vm.specification.version").compareTo("16") < 0);
188
+
189
final AtomicReference<ThreadGroup> innerThreadGroup = new AtomicReference<ThreadGroup>();
190
final AtomicReference<Thread> innerThread = new AtomicReference<Thread>();
191
final ThreadGroup outerThreadGroup = currentThread().getThreadGroup();
0 commit comments