Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6583

MessageListenerTest#testLocalTransaction fails intermittently

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.3, 3.0.7
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      This test fails intermittently with the following error:

      Running org.apache.cxf.transport.jms.util.MessageListenerTest
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.431 sec <<< FAILURE! - in org.apache.cxf.transport.jms.util.MessageListenerTest
      testLocalTransaction(org.apache.cxf.transport.jms.util.MessageListenerTest) Time elapsed: 7.429 sec <<< FAILURE!
      java.lang.AssertionError: Should be rolled back -> number of messages on queue expected:<1> but was:<0>
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.failNotEquals(Assert.java:834)
      at org.junit.Assert.assertEquals(Assert.java:645)
      at org.apache.cxf.transport.jms.util.MessageListenerTest.assertNumMessagesInQueue(MessageListenerTest.java:176)
      at org.apache.cxf.transport.jms.util.MessageListenerTest.testTransactionalBehaviour(MessageListenerTest.java:122)
      at org.apache.cxf.transport.jms.util.MessageListenerTest.testLocalTransaction(MessageListenerTest.java:104)

      This just looks like a timing error. I will submit a PR for this shortly.

        Attachments

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              kearls Kevin Earls
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: