Skip to content

Commit bf0889a

Browse files
authored
backport test fix from main branch (#1413)
1 parent d1254c9 commit bf0889a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

actor-tests/src/test/scala/org/apache/pekko/dispatch/ForkJoinPoolStarvationSpec.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import com.typesafe.config.ConfigFactory
1818
import org.apache.pekko
1919
import pekko.actor.{ Actor, Props }
2020
import pekko.testkit.{ ImplicitSender, PekkoSpec }
21+
import pekko.util.JavaVersion
2122

2223
object ForkJoinPoolStarvationSpec {
2324
val config = ConfigFactory.parseString("""
@@ -62,7 +63,7 @@ class ForkJoinPoolStarvationSpec extends PekkoSpec(ForkJoinPoolStarvationSpec.co
6263

6364
"not starve tasks arriving from external dispatchers under high internal traffic" in {
6465
// TODO issue #31117: starvation with JDK 17 FJP
65-
if (System.getProperty("java.specification.version") == "17")
66+
if (JavaVersion.majorVersion >= 17)
6667
pending
6768

6869
// Two busy actors that will occupy the threads of the dispatcher

0 commit comments

Comments
 (0)