[JBoss JIRA] (JBTM-3318) TckRecoveryTests#testCancelWhenParticipantIsUnavailable fails on CI
by Ondrej Chaloupka (Jira)
[ https://issues.redhat.com/browse/JBTM-3318?page=com.atlassian.jira.plugin... ]
Ondrej Chaloupka commented on JBTM-3318:
----------------------------------------
The fix was based on a bit hacky reflection manipulation where there is added a hook to CDI extension which go through annotations of the defined classes and it directly changes the {{timeLimit}} value of the annotation class itself. When the annotation class is then used by LRA filter it gets the changed class with adjusted timeout.
> TckRecoveryTests#testCancelWhenParticipantIsUnavailable fails on CI
> -------------------------------------------------------------------
>
> Key: JBTM-3318
> URL: https://issues.redhat.com/browse/JBTM-3318
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Components: LRA
> Affects Versions: 5.10.4.Final
> Reporter: Ondrej Chaloupka
> Assignee: Ondrej Chaloupka
> Priority: Blocker
> Attachments: org.eclipse.microprofile.lra.tck.TckRecoveryTests-output.txt
>
>
> The test {{TckRecoveryTests#testCancelWhenParticipantIsUnavailable}} fails on AMS CI.
> The CI is a bit slower and it seems the issue consists of timeout handling.
> {code}
> [INFO] Running org.eclipse.microprofile.lra.tck.TckRecoveryTests
> [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 57.021 s <<< FAILURE! - in org.eclipse.microprofile.lra.tck.TckRecoveryTests
> [ERROR] testCancelWhenParticipantIsUnavailable(org.eclipse.microprofile.lra.tck.TckRecoveryTests) Time elapsed: 28.349 s <<< FAILURE!
> java.lang.AssertionError: Compensate on restarted service should have been called. Was -1 expected:<200> but was:<500>
> at org.eclipse.microprofile.lra.tck.TckRecoveryTests.testCancelWhenParticipantIsUnavailable(TckRecoveryTests.java:215)
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)