From 5ad21c56c65f9a64f9920d009d16b086d369274e Mon Sep 17 00:00:00 2001 From: "David M. Lloyd" Date: Tue, 12 Nov 2019 17:02:19 -0600 Subject: [PATCH] Disable sporadically failing dev mode test See #5424 --- .../test/NotFoundExceptionMapperTestCase.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NotFoundExceptionMapperTestCase.java b/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NotFoundExceptionMapperTestCase.java index 76a3f583385c7..2f57f703e9b53 100644 --- a/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NotFoundExceptionMapperTestCase.java +++ b/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NotFoundExceptionMapperTestCase.java @@ -7,6 +7,7 @@ import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; 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; @@ -53,20 +54,17 @@ public void testJsonResourceNotFound() { .contentType(ContentType.JSON); } + @Disabled("https://github.com/quarkusio/quarkus/issues/5424") @Test public void shouldDisplayNewAddedFileIn404ErrorPage() throws InterruptedException { String CONTENT = "html content"; test.addResourceFile(META_INF_RESOURCES + "index2.html", CONTENT); - Thread.sleep(700); - RestAssured.get("/index2.html") .then() .statusCode(200) .body(containsString(CONTENT)); // check that index2.html is live reloaded - Thread.sleep(500); - RestAssured.given() .accept(ContentType.HTML) .when() @@ -76,13 +74,12 @@ public void shouldDisplayNewAddedFileIn404ErrorPage() throws InterruptedExceptio .body(containsString("index2.html")); // check that index2.html is displayed } + @Disabled("https://github.com/quarkusio/quarkus/issues/5424") @Test public void shouldNotDisplayDeletedFileIn404ErrorPage() throws InterruptedException { String TEST_CONTENT = "test html content"; test.addResourceFile(META_INF_RESOURCES + "test.html", TEST_CONTENT); - Thread.sleep(700); - RestAssured .get("/test.html") .then() @@ -91,8 +88,6 @@ public void shouldNotDisplayDeletedFileIn404ErrorPage() throws InterruptedExcept test.deleteResourceFile(META_INF_RESOURCES + "test.html"); // delete test.html file - Thread.sleep(700); - RestAssured .given() .accept(ContentType.HTML)