Skip to content

Commit 994129c

Browse files
author
Julian Akkaya
committed
Changed timeout back to 5000ms in test and some other minor adjustments
1 parent e8a3f90 commit 994129c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/test/java/org/wiremock/integrations/testcontainers/WireMockContainerExtensionsWebhookTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void callbackUsingJsonStub() throws Exception {
8787
.contains(applicationCallbackUrl);
8888
});
8989

90-
await().atMost(Duration.ofMillis(10000)).untilAsserted(() -> {
90+
await().atMost(Duration.ofMillis(5000)).untilAsserted(() -> {
9191
assertThat(applicationServer.getRecordedRequests()).as("Received Callback")
9292
.hasSize(1)
9393
.first().usingRecursiveComparison()

src/test/java/org/wiremock/integrations/testcontainers/testsupport/http/TestHttpClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public HttpResponse post(String uri, String body) throws IOException {
4646
connection.setDoOutput(true);
4747
connection.setConnectTimeout(10000);
4848

49-
try (OutputStream os = connection.getOutputStream()) {
49+
try (OutputStream outputStream = connection.getOutputStream()) {
5050
byte[] input = body.getBytes(StandardCharsets.UTF_8);
51-
os.write(input, 0, input.length);
51+
outputStream.write(input, 0, input.length);
5252
}
5353

5454
return send(connection);

src/test/java/org/wiremock/integrations/testcontainers/testsupport/http/TestHttpServer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ public void handle(HttpExchange exchange) throws IOException {
5757
requestBody.read(requestBodyBytes);
5858
body = new String(requestBodyBytes, StandardCharsets.UTF_8);
5959
}
60-
61-
// Do something with the request data
60+
6261
recordedRequests.add(new RecordedRequest(method, path, body));
6362

6463
exchange.sendResponseHeaders(200, 0);

0 commit comments

Comments
 (0)