[
https://issues.apache.org/jira/browse/CAMEL-7694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14095784#comment-14095784
]
ASF GitHub Bot commented on CAMEL-7694:
---------------------------------------
GitHub user kevinearls opened a pull request:
https://github.com/apache/camel/pull/236
Fix for CAMEL-7694 Eliminated race condition which caused intermittent t...
...est failures
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kevinearls/camel CAMEL-7694
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/236.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 #236
----
commit b2c3b31bba3191aa193cbb672b5d353fd2818ed2
Author: Kevin Earls <[email protected]>
Date: 2014-08-13T17:42:00Z
Fix for CAMEL-7694 Eliminated race condition which caused intermittent test
failures
----
> RestletGroovyIssueTest fails intermittently
> -------------------------------------------
>
> Key: CAMEL-7694
> URL: https://issues.apache.org/jira/browse/CAMEL-7694
> Project: Camel
> Issue Type: Bug
> Components: tests
> Reporter: Kevin Earls
> Priority: Minor
>
> The RestletGroovyIssueTest.testRestletGroovy() fails intermittently with the
> error shown below. It looks like it's just a race condition where sometimes
> assertMockEndpoinsSatisfied fires before everything else finishes.
> I'll submit a pull request with a fix.
> Error Message
> mock://input Received message count. Expected: <10> but was: <9>
> Stacktrace
> java.lang.AssertionError: mock://input Received message count. Expected: <10>
> but was: <9>
> at
> org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1333)
> at
> org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1315)
> at
> org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:383)
> at
> org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:362)
> at
> org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:350)
> at
> org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:188)
> at
> org.apache.camel.test.junit4.CamelTestSupport.assertMockEndpointsSatisfied(CamelTestSupport.java:675)
> at
> org.apache.camel.itest.restlet.example.RestletGroovyIssueTest.testRestletGroovy(RestletGroovyIssueTest.java:52)
--
This message was sent by Atlassian JIRA
(v6.2#6252)