I wonder if putting a small Thread.yield() or Thread.sleep(500) right before the assertEquals could fix it. It could be that the the continuum box is overloaded, so the context hasn't shifted to the localserver thread to accept the connection by the time the assertEquals has run.
Sam On 5/28/08, sebb <[EMAIL PROTECTED]> wrote: > On 28/05/2008, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote: > > sebb wrote: > > > > > I've fixed the Continuum build by changing from > > > > > > mvn clean package > > > > > > to > > > > > > mvn clean install > > > > > > so that the core snapshot is made available to the client build. > > > > > > However, the Client build still fails - but this time it's a test error. > > > > > > > > > > It is this test case. What it truly puzzling is that I am unable to > > reproduce the problem neither on my Linux box, not MacOS, not Windows box I > > have access to at work. > > Nor me ... > > > However, the test appears to be failing consistently > > on the build server. One thing I observed about the build server is that it > > seems to be always running under some load so timing sensitive test cases > > tend to fail more often. > > > > However, the test only took 0.013 sec which is quite short... > > > Oleg > > > > testAbortAfterSocketConnect(org.apache.http.impl.conn.TestTSCCMWithServer) > > Time elapsed: 0.013 sec <<< FAILURE! > > junit.framework.AssertionFailedError: expected:<1> but > > was:<0> > > at junit.framework.Assert.fail(Assert.java:47) > > at > > junit.framework.Assert.failNotEquals(Assert.java:280) > > at > > junit.framework.Assert.assertEquals(Assert.java:64) > > at > > junit.framework.Assert.assertEquals(Assert.java:198) > > at > > junit.framework.Assert.assertEquals(Assert.java:204) > > at > > org.apache.http.impl.conn.TestTSCCMWithServer.testAbortAfterSocketConnect(TestTSCCMWithServer.java:630) > > at > > org.apache.http.impl.conn.TestTSCCMWithServer.testAbortAfterSocketConnect(TestTSCCMWithServer.java:630) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > junit.framework.TestCase.runTest(TestCase.java:164) > > at > > junit.framework.TestCase.runBare(TestCase.java:130) > > at > > junit.framework.TestResult$1.protect(TestResult.java:106) > > at > > junit.framework.TestResult.runProtected(TestResult.java:124) > > at > > junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:120) > > at > > junit.framework.TestSuite.runTest(TestSuite.java:230) > > at > > junit.framework.TestSuite.run(TestSuite.java:225) > > at > > junit.framework.TestSuite.runTest(TestSuite.java:230) > > at > > junit.framework.TestSuite.run(TestSuite.java:225) > > at > > junit.framework.TestSuite.runTest(TestSuite.java:230) > > at > > junit.framework.TestSuite.run(TestSuite.java:225) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) > > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) > > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) > > at > > org.apache.maven.surefire.Surefire.run(Surefire.java:132) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) > > at > > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) > > > > > > > > > > > > > > > I think there's still a problem with the Continuum setup, as Client > > > ought to be built after Core, and it seems to be the other way round > > > at present. I'll see about fixing this in due course. > > > > > > > > --------------------------------------------------------------------- > > > 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]
