Skip to content

Commit

Permalink
UNDERTOW-449 Fix issue with connection termination test case
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jun 1, 2015
1 parent 4dc721e commit e29139a
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -27,7 +27,6 @@
import io.undertow.testutils.TestHttpClient;
import io.undertow.util.StatusCodes;
import org.apache.http.HttpResponse;
import org.apache.http.NoHttpResponseException;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.junit.Assert;
Expand All @@ -44,7 +43,7 @@
@RunWith(DefaultServer.class)
@HttpOneOnly
@ProxyIgnore
public class ConnectionTerminationTestCase {
public class ServletInputStreamConnectionTerminationTestCase {

public static final String HELLO_WORLD = "Hello World";

Expand Down Expand Up @@ -73,7 +72,7 @@ public void testConnectionTermination() throws IOException {
Assert.assertEquals(StatusCodes.OK, result.getStatusLine().getStatusCode());
final String response = HttpClientUtils.readResponse(result);
Assert.fail();
} catch (NoHttpResponseException expected) {
} catch (IOException expected) {
//expected
} finally {
client.getConnectionManager().shutdown();
Expand Down

0 comments on commit e29139a

Please sign in to comment.