You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2021/08/24 16:57:01 UTC

[jira] [Resolved] (CAMEL-16886) NewCommentsConsumerTest#singleIssueCommentsTest fails intermitently

     [ https://issues.apache.org/jira/browse/CAMEL-16886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Yue Fang resolved CAMEL-16886.
--------------------------------------
    Fix Version/s: 3.12.0
                   3.11.2
       Resolution: Fixed

> NewCommentsConsumerTest#singleIssueCommentsTest fails intermitently 
> --------------------------------------------------------------------
>
>                 Key: CAMEL-16886
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16886
>             Project: Camel
>          Issue Type: Test
>          Components: camel-jira
>            Reporter: Freeman Yue Fang
>            Assignee: Freeman Yue Fang
>            Priority: Major
>             Fix For: 3.11.2, 3.12.0
>
>
> We randomly can get error like
> {code}
> org.apache.camel.component.jira.consumer.NewCommentsConsumerTest.singleIssueCommentsTest  Time elapsed: 1.939 s  <<< FAILURE!
> java.lang.AssertionError: mock://result Received message count. Expected: <3> but was: <4>
> 	at org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1790)
> 	at org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1767)
> {code}
> this is very rare to reproduce,  but if we change the comments number from 3 to 3000 in this test, we can see this error constantly.
> The problem comes from that the issue with comments can be read multiple times and send to the mock endpoint, we should ensure the issue with comments  only be read once, just like the way in NewCommentsConsumerTest#multipleIssuesTest



--
This message was sent by Atlassian Jira
(v8.3.4#803005)