Skip to content

Commit

Permalink
Merge pull request #5425 from dmlloyd/part-5424
Browse files Browse the repository at this point in the history
Disable sporadically failing dev mode test
  • Loading branch information
kenfinnigan authored Nov 12, 2019
2 parents 2ebf84b + 5ad21c5 commit 8356621
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 8356621

Please sign in to comment.