You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Krzysztof Sobkowiak (JIRA)" <ji...@apache.org> on 2014/04/30 20:30:16 UTC

[jira] [Commented] (SM-2286) Intermittent test failure in ActivitiExamplesTest.testActivitiCamelExample

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

Krzysztof Sobkowiak commented on SM-2286:
-----------------------------------------

The test case fails at following line

{code}
expect { logging.containsMessage(line => line.contains(s"Processing delivery for order ${orderId}")) }
{code}

It means, the log entry {{Processing delivery for order 001}} could not be found. But the message can be found in the attached log file

{code}
21:23:55,059 | INFO  | i-camel/delivery | route4                           | 97 - org.apache.camel.camel-core - 2.13.0 | Processing delivery for order 001 created on 2014-04-26 21:23:45
{code}

Probably the {{expect}} method stops waiting for the log entry before the event is logged in the log file.



> Intermittent test failure in ActivitiExamplesTest.testActivitiCamelExample
> --------------------------------------------------------------------------
>
>                 Key: SM-2286
>                 URL: https://issues.apache.org/jira/browse/SM-2286
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: itests
>    Affects Versions: 5.0.1, 5.1.0, 6.0.0
>            Reporter: Krzysztof Sobkowiak
>             Fix For: 5.0.1, 5.1.0, 6.0.0
>
>         Attachments: org.apache.servicemix.itests.ActivitiExamplesTest-output.txt
>
>
> There is an intermittent failure in {{ActivitiExamplesTest.testActivitiCamelExample}}
> {code}
> Caused by: java.lang.AssertionError: Gave up waiting for test condition
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.apache.servicemix.itests.IntegrationTestSupport.expect(IntegrationTestSupport.scala:83)
> 	at org.apache.servicemix.itests.ActivitiExamplesTest$$anonfun$testActivitiCamelExample$1.apply$mcV$sp(ExamplesIntegrationTests.scala:75)
> 	at org.apache.servicemix.itests.IntegrationTestSupport.testWithFeature(IntegrationTestSupport.scala:74)
> 	at org.apache.servicemix.itests.ActivitiExamplesTest.testActivitiCamelExample(ExamplesIntegrationTests.scala:58)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)