Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4713

org.apache.activemq.transport.amqp.JMSClientTest.testTXConsumerAndLargeNumberOfMessages fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 5.9.0
    • Test Cases
    • None
    • mac os x, jdk7

    • Regression, Unit Test Broken

    Description

      This fails intermittently with one of the two errors shown below:

      Running org.apache.activemq.transport.amqp.JMSClientTest
      Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 13.778 sec <<< FAILURE!
      testTXConsumerAndLargeNumberOfMessages(org.apache.activemq.transport.amqp.JMSClientTest) Time elapsed: 2.027 sec <<< FAILURE!
      java.lang.AssertionError: expected:<0> but was:<15>
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.failNotEquals(Assert.java:743)
      at org.junit.Assert.assertEquals(Assert.java:118)
      at org.junit.Assert.assertEquals(Assert.java:555)
      at org.junit.Assert.assertEquals(Assert.java:542)
      at org.apache.activemq.transport.amqp.JMSClientTest.testTXConsumerAndLargeNumberOfMessages(JMSClientTest.java:193)

      Results :

      Failed tests:
      JMSClientTest.testTXConsumerAndLargeNumberOfMessages:193 expected:<0> but was:<15>

      Tests run: 5, Failures: 1, Errors: 0, Skipped: 0

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.activemq.transport.amqp.JMSClientTest
      Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 40.032 sec <<< FAILURE!
      testTXConsumerAndLargeNumberOfMessages(org.apache.activemq.transport.amqp.JMSClientTest) Time elapsed: 18.031 sec <<< FAILURE!
      java.lang.AssertionError: Should receive message: 159
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.assertTrue(Assert.java:41)
      at org.junit.Assert.assertNotNull(Assert.java:621)
      at org.apache.activemq.transport.amqp.JMSClientTest.testTXConsumerAndLargeNumberOfMessages(JMSClientTest.java:181)

      Attachments

        1. AMQ-4713.patch
          0.9 kB
          Kevin Anthony Earls

        Activity

          People

            tabish Timothy A. Bish
            kearls Kevin Anthony Earls
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: