[
https://issues.apache.org/jira/browse/CAMEL-25343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18124467#comment-18124467
]
Guillaume Nodet commented on CAMEL-25343:
-----------------------------------------
PR opened: https://github.com/apache/camel/pull/27498
Fix: increase {{DelayedEchoCommandFactory}} command delay from 1000ms to 5000ms
(10:1 ratio vs 500ms idle timeout), update route timeout values to match, and
fix stale comments. All 6 tests in {{SshIdleTimeoutTest}} pass locally.
_Hermes Agent on behalf of gnodet_
> Fix flaky test SshIdleTimeoutTest.testIdleTimeoutExpiresBeforeCommandCompletes
> ------------------------------------------------------------------------------
>
> Key: CAMEL-25343
> URL: https://issues.apache.org/jira/browse/CAMEL-25343
> Project: Camel
> Issue Type: Test
> Components: camel-ssh
> Affects Versions: 4.23.0
> Reporter: Aurélien Pupier
> Assignee: Guillaume Nodet
> Priority: Major
>
> [failed 2 times and flaky 7 times in last 90
> days|https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.timeZoneId=Europe%2FParis&tests.container=org.apache.camel.component.ssh.SshIdleTimeoutTest&tests.test=testIdleTimeoutExpiresBeforeCommandCompletes]
> it is failing a lot more when the full build is launched with -T1C
> {noformat}
> org.opentest4j.AssertionFailedError: Exit value should be null because the
> session was closed by idle timeout before the command completed ==> expected:
> <null> but was: <0>
> at org.junit.jupiter.api.Assertions.assertNull(Assertions.java:317)
> at
> org.apache.camel.component.ssh.SshIdleTimeoutTest.testIdleTimeoutExpiresBeforeCommandCompletes(SshIdleTimeoutTest.java:133)
>
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)