[Update] clean trash

This commit is contained in:
@hangga 2023-10-16 18:33:15 +07:00
parent eb4a8eb49d
commit c1f53973cd
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class CompletableFutureTimeoutUnitTest {
wireMockServer = new WireMockServer(8080);
wireMockServer.start();
WireMock.configureFor("localhost", 8080);
System.out.println("stubing");
stubFor(get(urlEqualTo("/api/dummy"))
.willReturn(aResponse()
.withFixedDelay(5000) // must be > DEFAULT_TIMEOUT for a timeout to occur.
@ -61,6 +61,7 @@ class CompletableFutureTimeoutUnitTest {
response.append(inputLine);
}
in.close();
return response.toString();
} finally {
connection.disconnect();