Skip to content

Commit

Permalink
We can other other IOException messages than Broken pipe
Browse files Browse the repository at this point in the history
Such as « Channel output shutdown » and « Connection reset by peer ».
  • Loading branch information
slandelle committed Sep 25, 2017
1 parent 0923f0e commit 0991a8f
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@
import java.util.concurrent.ExecutionException;
import java.util.function.Function;

import org.asynchttpclient.AbstractBasicTest;
import org.asynchttpclient.AsyncHttpClient;
import org.asynchttpclient.BasicAuthTest;
import org.asynchttpclient.BoundRequestBuilder;
import org.asynchttpclient.Response;
import org.asynchttpclient.*;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.handler.AbstractHandler;
Expand Down Expand Up @@ -71,7 +67,6 @@ private void expectBrokenPipe(Function<BoundRequestBuilder, BoundRequestBuilder>
}

assertTrue(cause instanceof IOException, "Expected an IOException");
assertEquals(cause.getMessage(), "Broken pipe");
}

@Test(groups = "standalone")
Expand Down

0 comments on commit 0991a8f

Please sign in to comment.