On 15 January 2013 18:08, Mark Claassen <[email protected]> wrote: > Thanks! > > Connect to localhost:54964 > > Since the other tests succeeded, I can't tell if they had been using this > port or not. netstat does not show it in use now (when > the tests are not running). > > > > -<testcase name="testStatefulConnections" time="0.063" > classname="org.apache.http.impl.client.TestStatefulConnManagement"> <error > type="org.apache.http.conn.ConnectTimeoutException" message="Connect to > localhost:54964 timed > out">org.apache.http.conn.ConnectTimeoutException: Connect to localhost:54964 > timed out at > org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:129) > at > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) > at > org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) > at > org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645) > at > org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480) > at > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) > at > org.apache.http.impl.client.TestStatefulConnManagement$HttpWorker.run(TestStatefulConnManagement.java:177) > </error> </testcase> >
Try running just that test case: mvn test -Dtest=TestStatefulConnManagement What JVM and OS are you using? > > -----Original Message----- > From: sebb [mailto:[email protected]] > Sent: Tuesday, January 15, 2013 12:57 PM > To: HttpClient User Discussion > Subject: Re: Unit test failure > > On 15 January 2013 17:45, Mark Claassen <[email protected]> wrote: >> I will get a unit test failure in the same place. Any ideas? >> >> Running org.apache.http.impl.client.TestRequestRetryHandler >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 >> sec Running org.apache.http.impl.client.TestRequestWrapper >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 >> sec Running org.apache.http.impl.client.TestStatefulConnManagement >> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.283 sec >> <<< FAILURE! > > Have a look at the relevant Surefire details file under > > target/surefire-reports > > This will give more info on the error. > >> Running org.apache.http.impl.conn.TestAbortHandling >> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.186 >> sec Running org.apache.http.impl.conn.TestBasicConnManager >> >> -----Original Message----- >> From: Mark Claassen [mailto:[email protected]] >> Sent: Tuesday, January 15, 2013 12:35 PM >> To: 'HttpClient User Discussion' >> Subject: RE: Unit test failure >> >> Guess I will try 4.2.3 quick. >> >> -----Original Message----- >> From: Mark Claassen [mailto:[email protected]] >> Sent: Tuesday, January 15, 2013 12:26 PM >> To: 'HttpClient User Discussion' >> Subject: Unit test failure >> >> I am trying to compile HttpClient 4.2.2, but I run into a unit test >> failure every time. It doesn't say much so I am not sure what to do. Could >> it be my environment? All the other tests in all the > other packages succeed. >> >> Running org.apache.http.impl.client.TestStatefulConnManagement >> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.262 sec >> <<< FAILURE! >> >> Thanks >> Mark >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
