From 108b40c6aa65d1828c68229e9d5b4054d4d29475 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Fri, 3 Jul 2020 09:00:40 +0200 Subject: [PATCH] Disable ConcurrentExecutionTest as it's unreliable --- .../java/io/quarkus/quartz/test/ConcurrentExecutionTest.java | 4 +++- .../io/quarkus/scheduler/test/ConcurrentExecutionTest.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConcurrentExecutionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConcurrentExecutionTest.java index bb5d96f4bb384..9bdd3b96a75e0 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConcurrentExecutionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConcurrentExecutionTest.java @@ -10,12 +10,14 @@ import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; import io.quarkus.scheduler.Scheduled; import io.quarkus.test.QuarkusUnitTest; +@Disabled("The test is unreliable. Needs investigation.") public class ConcurrentExecutionTest { @RegisterExtension @@ -46,7 +48,7 @@ void concurrent() { void nonconcurrent() throws InterruptedException { COUNTER.incrementAndGet(); if (!LATCH.await(5, TimeUnit.SECONDS)) { - throw new IllegalStateException(""); + throw new IllegalStateException(); } } } diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConcurrentExecutionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConcurrentExecutionTest.java index d8d533333ff05..f9ead525e7de6 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConcurrentExecutionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConcurrentExecutionTest.java @@ -10,12 +10,14 @@ import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; import io.quarkus.scheduler.Scheduled; import io.quarkus.test.QuarkusUnitTest; +@Disabled("The test is unreliable. Needs investigation.") public class ConcurrentExecutionTest { @RegisterExtension @@ -46,7 +48,7 @@ void concurrent() { void nonconcurrent() throws InterruptedException { COUNTER.incrementAndGet(); if (!LATCH.await(5, TimeUnit.SECONDS)) { - throw new IllegalStateException(""); + throw new IllegalStateException(); } } }