We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaacf4d commit 80d9930Copy full SHA for 80d9930
test/files/jvm/scala-concurrent-tck.scala
@@ -874,11 +874,16 @@ trait CustomExecutionContext extends TestBase {
874
latch.countDown()
875
})
876
877
+ // scala/bug#12423, scala/scala#9680
878
+ val threadDeathWaitingPeriod =
879
+ if (scala.util.Properties.isJavaAtLeast("17")) 1000L
880
+ else 10L
881
+
882
@tailrec def waitForThreadDeath(turns: Int): Boolean =
883
if (turns <= 0) false
884
else if ((thread ne null) && thread.isAlive == false) true
885
else {
- Thread.sleep(10)
886
+ Thread.sleep(threadDeathWaitingPeriod)
887
waitForThreadDeath(turns - 1)
888
}
889
0 commit comments