Skip to content

Commit c822f15

Browse files
author
Stephane Landelle
committed
Properly handle response once we've receive LastHttpContent
1 parent 3923fce commit c822f15

File tree

3 files changed

+166
-169
lines changed

3 files changed

+166
-169
lines changed

api/src/test/java/org/asynchttpclient/async/AsyncProvidersBasicTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,15 +1602,11 @@ public void headShouldNotAllowBody() throws IllegalArgumentException, IOExceptio
16021602
}
16031603
}
16041604

1605-
protected String getBrokenTargetUrl() {
1606-
return String.format("http:127.0.0.1:%d/foo/test", port1);
1607-
}
1608-
16091605
@Test(groups = { "standalone", "default_provider" })
16101606
public void invalidUri() throws Exception {
16111607
AsyncHttpClient client = getAsyncHttpClient(null);
16121608
try {
1613-
Response response = client.executeRequest(client.prepareGet(getBrokenTargetUrl()).build()).get();
1609+
Response response = client.executeRequest(client.prepareGet(String.format("http:127.0.0.1:%d/foo/test", port1)).build()).get();
16141610
assertEquals(200, response.getStatusCode());
16151611
} finally {
16161612
client.close();

0 commit comments

Comments
 (0)