activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: AMQ 5.4.1 activemq-core unit test failures
Date Fri, 05 Nov 2010 18:40:43 GMT
Some of the tests are time sensitive, but the get better all the time.
They should all run for a release and if some fail on the collective
run, they should pass when run on their own, with mvn test
-Dtest=SslBrokerServiceTest for example.

There was one failure in the last hudson run for example, if the
failure repeats it will need some investigation.
https://hudson.apache.org/hudson/job/ActiveMQ/495/org.apache.activemq$activemq-core/testReport/


On 5 November 2010 18:27, schow <schow@alarmpoint.com> wrote:
>
> Hello,
>
> I'm running "mvn test" from the root directory of my sandbox:
>
> https://svn.apache.org/repos/asf/activemq/tags/activemq-5.4.1
>
> The activemq-core project is failing on two unit tests and I'm wondering if
> the general rule is that all unit tests should pass or is it expected that
> some will fail due to known issues?  Here is the test output:
>
> -------------------------------------------------------------------------------
> Test set: org.apache.activemq.transport.tcp.SslBrokerServiceTest
> -------------------------------------------------------------------------------
> Tests run: 131, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 639.379
> sec <<< FAILURE!
> testNeedClientAuth(org.apache.activemq.transport.tcp.SslBrokerServiceTest)
> Time elapsed: 5.063 sec  <<< ERROR!
> java.net.SocketException: Connection closed by remote host
>        at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1253)
>        at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1119)
>        at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)
>        at
> org.apache.activemq.transport.tcp.SslBrokerServiceTest.makeSSLConnection(SslBrokerServiceTest.java:123)
>        at
> org.apache.activemq.transport.tcp.SslBrokerServiceTest.testNeedClientAuth(SslBrokerServiceTest.java:89)
>        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:597)
>        at junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at
> org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:90)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
>        at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:140)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:109)
>        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:597)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)
>
> -------------------------------------------------------------------------------
> Test set: org.apache.activemq.broker.policy.MessageListenerDeadLetterTest
> -------------------------------------------------------------------------------
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.032 sec
> <<< FAILURE!
> testTransientQueueMessage(org.apache.activemq.broker.policy.MessageListenerDeadLetterTest)
> Time elapsed: 1.547 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: inflight for:
> org.apache.activemq.broker.policy.MessageListenerDeadLetterTest.testTransientQueueMessage:
> 1 matches expected:<0> but was:<1>
>        at junit.framework.Assert.fail(Assert.java:47)
>        at junit.framework.Assert.failNotEquals(Assert.java:277)
>        at junit.framework.Assert.assertEquals(Assert.java:64)
>        at junit.framework.Assert.assertEquals(Assert.java:130)
>        at
> org.apache.activemq.broker.policy.DeadLetterTestSupport.validateConsumerPrefetch(DeadLetterTestSupport.java:198)
>        at
> org.apache.activemq.broker.policy.DeadLetterTestSupport.testTransientQueueMessage(DeadLetterTestSupport.java:174)
>        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:597)
>        at junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at
> org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:90)
>        at
> org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:96)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
>        at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:140)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:109)
>        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:597)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/AMQ-5-4-1-activemq-core-unit-test-failures-tp3029158p3029158.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://blog.garytully.com
http://fusesource.com

Mime
View raw message