[Update] clean trash
This commit is contained in:
parent
eb4a8eb49d
commit
c1f53973cd
|
@ -31,7 +31,7 @@ class CompletableFutureTimeoutUnitTest {
|
||||||
wireMockServer = new WireMockServer(8080);
|
wireMockServer = new WireMockServer(8080);
|
||||||
wireMockServer.start();
|
wireMockServer.start();
|
||||||
WireMock.configureFor("localhost", 8080);
|
WireMock.configureFor("localhost", 8080);
|
||||||
System.out.println("stubing");
|
|
||||||
stubFor(get(urlEqualTo("/api/dummy"))
|
stubFor(get(urlEqualTo("/api/dummy"))
|
||||||
.willReturn(aResponse()
|
.willReturn(aResponse()
|
||||||
.withFixedDelay(5000) // must be > DEFAULT_TIMEOUT for a timeout to occur.
|
.withFixedDelay(5000) // must be > DEFAULT_TIMEOUT for a timeout to occur.
|
||||||
|
@ -61,6 +61,7 @@ class CompletableFutureTimeoutUnitTest {
|
||||||
response.append(inputLine);
|
response.append(inputLine);
|
||||||
}
|
}
|
||||||
in.close();
|
in.close();
|
||||||
|
|
||||||
return response.toString();
|
return response.toString();
|
||||||
} finally {
|
} finally {
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
|
|
Loading…
Reference in New Issue