You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2015/04/14 20:58:47 UTC
svn commit: r1673510 -
/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java
Author: olegk
Date: Tue Apr 14 18:58:46 2015
New Revision: 1673510
URL: http://svn.apache.org/r1673510
Log:
relax the expected exception type to generic I/O to make Windows happy
Modified:
httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java?rev=1673510&r1=1673509&r2=1673510&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java Tue Apr 14 18:58:46 2015
@@ -26,6 +26,7 @@
*/
package org.apache.http.nio.client.integration;
+import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
@@ -35,7 +36,6 @@ import java.util.concurrent.ConcurrentLi
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
-import org.apache.http.ConnectionClosedException;
import org.apache.http.HttpEntityEnclosingRequest;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
@@ -212,7 +212,7 @@ public class TestHttpAsyncPipelining ext
} catch (ExecutionException ex) {
final Throwable cause = ex.getCause();
Assert.assertNotNull(cause);
- Assert.assertEquals(cause.getClass(), ConnectionClosedException.class);
+ Assert.assertTrue(cause instanceof IOException);
}
Assert.assertTrue(c1.isDone());
Assert.assertNotNull(c1.getResult());