Skip to content

Commit

Permalink
attempt to make test methods consider if they are on Java 19
Browse files Browse the repository at this point in the history
  • Loading branch information
jh3nd3rs0n committed Sep 26, 2024
1 parent ab82cdf commit bf59fb5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void testNewVirtualThreadPerTaskExecutorOrDefaultExecutorBuilder03() {
ExecutorService executorService2 =
ExecutorsHelper.newVirtualThreadPerTaskExecutorOrDefault(
ExecutorsHelper.newCachedThreadPoolBuilder());
if (ExecutorsHelper.canUseVirtualThreads()) {
if (ExecutorsHelper.canUseVirtualThreads() && Runtime.version().version().get(0) != 19) {
Assert.assertNotEquals(
executorService1.getClass(),
executorService2.getClass());
Expand All @@ -63,7 +63,7 @@ public void testNewVirtualThreadPerTaskExecutorOrDefaultExecutorBuilder04() {
ExecutorService executorService2 =
ExecutorsHelper.newVirtualThreadPerTaskExecutorOrDefault(
ExecutorsHelper.newFixedThreadPoolBuilder(2));
if (ExecutorsHelper.canUseVirtualThreads()) {
if (ExecutorsHelper.canUseVirtualThreads() && Runtime.version().version().get(0) != 19) {
Assert.assertNotEquals(
executorService1.getClass(),
executorService2.getClass());
Expand Down

0 comments on commit bf59fb5

Please sign in to comment.