[
https://issues.apache.org/jira/browse/CAMEL-26366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-26366 started by Aurélien Pupier.
-----------------------------------------------
> Fix flaky NatsConsumerJetStreamPushStopTest and
> NatsConsumerPushConsumerDeletedTest
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-26366
> URL: https://issues.apache.org/jira/browse/CAMEL-26366
> Project: Camel
> Issue Type: Test
> Components: camel-nats
> Affects Versions: 4.24.0
> Reporter: Aurélien Pupier
> Assignee: Aurélien Pupier
> Priority: Major
>
> [NatsConsumerJetStreamPushStopTest is a new test added on the 25th October
> which is extremely flaky: 16 failures and 27 flaky in 3
> days...|https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.timeZoneId=Europe%2FParis&tests.container=*NatsConsumerJetStreamPushStopTest]
> NatsConsumerPushConsumerDeletedTest added aslso recently and very flaky too
> {noformat}
> org.opentest4j.AssertionFailedError: no subscription left once the consumer
> stopped ==> expected: <0> but was: <1>
> at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:601)
> at
> org.apache.camel.component.nats.NatsConsumerJetStreamPushStopTest.stopWhileSubscribingIsNotReportedAsAnError(NatsConsumerJetStreamPushStopTest.java:210)
> {noformat}
> {noformat}
> org.awaitility.core.ConditionTimeoutException: Assertion condition defined as
> a Lambda expression in
> org.apache.camel.component.nats.NatsConsumerPushConsumerDeletedTest no keeper
> listens to the connection after the stop ==> expected: <[]> but was:
> <[org.apache.camel.component.nats.NatsJetStreamPushConsumerKeeper@83c7abd]>
> within 20 seconds.
> at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
> at
> org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
> at
> org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
> at
> org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1160)
> at
> org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:790)
> at
> org.apache.camel.component.nats.NatsConsumerPushConsumerDeletedTest.removesItsConnectionListenerWhenTheRouteStopsWhileItSubscribes(NatsConsumerPushConsumerDeletedTest.java:247)
> Caused by: org.opentest4j.AssertionFailedError: no keeper listens to the
> connection after the stop ==> expected: <[]> but was:
> <[org.apache.camel.component.nats.NatsJetStreamPushConsumerKeeper@83c7abd]>
> at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1210)
> at
> org.apache.camel.component.nats.NatsConsumerPushConsumerDeletedTest.lambda$removesItsConnectionListenerWhenTheRouteStopsWhileItSubscribes$3(NatsConsumerPushConsumerDeletedTest.java:248)
> {noformat}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)