TckParticipantTests#testNonJaxRsCompletionStageResponseAndParticipantStatus and TckParticipantTests#testNonJaxRsCompletionStageVoid both finish with the invocation of method returning a CompletionStage. Some implementations (Narayana now) may choose to not block when the non-JAX-RS participant method returns CompletionStage. This means that we should give the implementation time to finish the execution as there is an injected delay in all returned CompletionStages. In other words, the test will finish before the completion stage and this means that the LRA is left active after the test ends.
TckParticipantTests#testNonJaxRsCompletionStageResponseAndParticipantStatus
andTckParticipantTests#testNonJaxRsCompletionStageVoid
both finish with the invocation of method returning aCompletionStage
. Some implementations (Narayana now) may choose to not block when the non-JAX-RS participant method returnsCompletionStage
. This means that we should give the implementation time to finish the execution as there is an injected delay in all returnedCompletionStage
s. In other words, the test will finish before the completion stage and this means that the LRA is left active after the test ends.