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)