Skip to content

Commit 676486b

Browse files
committed
Merge branch 'feature/master/apache5x' into joviegas/apache-5-achitecture-test-fix
2 parents f4a9af0 + 67d6690 commit 676486b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

http-clients/apache-client/src/test/java/software/amazon/awssdk/http/apache/ApacheHttpClientWireMockTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,22 +268,17 @@ public InetAddress[] resolve(final String host) throws UnknownHostException {
268268
mockProxyServer.verify(1, RequestPatternBuilder.allRequests());
269269
}
270270

271-
272271
@Test
273272
public void closeReleasesResources() throws Exception {
274273
SdkHttpClient client = createSdkHttpClient();
275-
276274
// Make a successful request first
277275
stubForMockRequest(200);
278276
SdkHttpFullRequest request = mockSdkRequest("http://localhost:" + mockServer.port(), SdkHttpMethod.POST);
279277
HttpExecuteResponse response = client.prepareRequest(
280278
HttpExecuteRequest.builder().request(request).build()).call();
281279
response.responseBody().ifPresent(IoUtils::drainInputStream);
282-
283280
// Close the client
284281
client.close();
285-
286-
287282
// Verify subsequent requests fail
288283
assertThatThrownBy(() -> {
289284
client.prepareRequest(HttpExecuteRequest.builder().request(request).build()).call();

0 commit comments

Comments
 (0)