hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1674028 - /httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java
Date Thu, 16 Apr 2015 09:18:45 GMT
Author: olegk
Date: Thu Apr 16 09:18:44 2015
New Revision: 1674028

URL: http://svn.apache.org/r1674028
Log:
Disabled test case failing on Windows

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=1674028&r1=1674027&r2=1674028&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
Thu Apr 16 09:18:44 2015
@@ -26,7 +26,6 @@
  */
 package org.apache.http.nio.client.integration;
 
-import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
@@ -36,6 +35,7 @@ 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;
@@ -56,6 +56,7 @@ import org.apache.http.util.EntityUtils;
 import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -177,7 +178,7 @@ public class TestHttpAsyncPipelining ext
 
     }
 
-    @Test
+    @Test @Ignore(value = "Fails on Windows")
     public void testPipelinedRequestsUnexpectedConnectionClosure() throws Exception {
         final HttpHost target = start();
 
@@ -212,7 +213,7 @@ public class TestHttpAsyncPipelining ext
             } catch (ExecutionException ex) {
                 final Throwable cause = ex.getCause();
                 Assert.assertNotNull(cause);
-                Assert.assertTrue(cause instanceof IOException);
+                Assert.assertTrue(cause instanceof ConnectionClosedException);
             }
             Assert.assertTrue(c1.isDone());
             Assert.assertNotNull(c1.getResult());



Mime
View raw message