On Mon, 2016-06-13 at 09:54 -0700, Gary Gregory wrote:
> On Mon, Jun 13, 2016 at 5:52 AM, Oleg Kalnichevski <[email protected]> wrote:
> 

...

> > Gary
> >
> > I relaxed the assert of exception type due to inconsistency in behavior
> > on different OS platforms.
> >
> > Could you please run the latest SVN 4.1.x code [1] locally and let me
> > know if the test still fails for you?
> >
> 
> Here you go:
> 
> testConnectionRequestFailure(org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination)
>  Time elapsed: 0.271 sec  <<< FAILURE!
> java.lang.AssertionError: Unexpected cause: java.lang.IllegalStateException
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at
> org.apache.http.nio.client.integration.TestHttpAsyncPrematureTermination.testConnectionRequestFailure(TestHttpAsyncPrematureTermination.java:309)
> 
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> 2015-11-10T08:41:47-08:00)
> Maven home: E:\Java\apache-maven-3.3.9
> Java version: *1.8.0_91*, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_91\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "*windows 7*", version: "6.1", arch: "amd64", family: "dos"
> 
> --

Gary
Could you please add this line prior to the assert (See patch attached)
and send me the stack trace?
---
cause.printStackTrace();
---
Oleg
diff --git a/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java b/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
index 200be49..98b00c5 100644
--- a/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
+++ b/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
@@ -306,6 +306,7 @@ public class TestHttpAsyncPrematureTermination extends HttpAsyncTestBase {
             Assert.fail();
         } catch (ExecutionException e) {
             final Throwable cause = e.getCause();
+            cause.printStackTrace();
             Assert.assertTrue("Unexpected cause: " + cause, cause instanceof IOException);
         }
         this.connMgr.shutdown(1000);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to