File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
actor-tests/src/test/scala/org/apache/pekko/dispatch Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import com.typesafe.config.ConfigFactory
1818import org .apache .pekko
1919import pekko .actor .{ Actor , Props }
2020import pekko .testkit .{ ImplicitSender , PekkoSpec }
21+ import pekko .util .JavaVersion
2122
2223object 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
You can’t perform that action at this time.
0 commit comments