Skip to content

Commit

Permalink
Merge branch '2.2.x'
Browse files Browse the repository at this point in the history
Closes gh-21450
  • Loading branch information
wilkinsona committed May 14, 2020
2 parents c35ed91 + b78e4da commit d0f16d6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.apache.http.HttpResponse;
import org.apache.jasper.servlet.JspServlet;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.mockito.InOrder;

Expand Down Expand Up @@ -74,6 +75,13 @@ protected UndertowServletWebServerFactory getFactory() {
return new UndertowServletWebServerFactory(0);
}

@AfterEach
void awaitClosureOfSslRelatedInputStreams() {
// https://issues.redhat.com/browse/UNDERTOW-1705
File resource = new File(this.tempDir, "test.txt");
Awaitility.await().atMost(Duration.ofSeconds(30)).until(() -> (!resource.isFile()) || resource.delete());
}

@Test
void errorPage404() throws Exception {
AbstractServletWebServerFactory factory = getFactory();
Expand Down

0 comments on commit d0f16d6

Please sign in to comment.