You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/09/08 16:36:46 UTC

[jira] [Commented] (CXF-6583) MessageListenerTest#testLocalTransaction fails intermittently

    [ https://issues.apache.org/jira/browse/CXF-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14734900#comment-14734900 ] 

ASF GitHub Bot commented on CXF-6583:
-------------------------------------

GitHub user kevinearls opened a pull request:

    https://github.com/apache/cxf/pull/87

    CXF-6583 Fixed timing issue which caused intermittent test failures

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kevinearls/cxf CXF-6583

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/87.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #87
    
----
commit 750ed5705b68148b43cf84fa67bfad2ca117a1c4
Author: Kevin Earls <ke...@kevinearls.com>
Date:   2015-09-08T14:35:55Z

    CXF-6583 Fixed timing issue which caused intermittent test failures

----


> MessageListenerTest#testLocalTransaction fails intermittently
> -------------------------------------------------------------
>
>                 Key: CXF-6583
>                 URL: https://issues.apache.org/jira/browse/CXF-6583
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Kevin Earls
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)