hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1673510 - /httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java
Date Tue, 14 Apr 2015 18:58:47 GMT
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());



Mime
View raw message