From f3d7572dcadbabb1799bd095cbab3ed33a1f12b2 Mon Sep 17 00:00:00 2001 From: Stephane Landelle Date: Mon, 25 Sep 2017 16:02:13 +0200 Subject: [PATCH] We can get other IOException messages than Broken pipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Such as « Channel output shutdown » and « Connection reset by peer ». --- .../request/body/multipart/MultipartBasicAuthTest.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/test/java/org/asynchttpclient/request/body/multipart/MultipartBasicAuthTest.java b/client/src/test/java/org/asynchttpclient/request/body/multipart/MultipartBasicAuthTest.java index ea05f2030c..ecb24ab4ec 100644 --- a/client/src/test/java/org/asynchttpclient/request/body/multipart/MultipartBasicAuthTest.java +++ b/client/src/test/java/org/asynchttpclient/request/body/multipart/MultipartBasicAuthTest.java @@ -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; @@ -71,7 +67,6 @@ private void expectBrokenPipe(Function } assertTrue(cause instanceof IOException, "Expected an IOException"); - assertEquals(cause.getMessage(), "Broken pipe"); } @Test(groups = "standalone")