eclipse / microprofile-lra

microprofile-lra
Apache License 2.0
101 stars 30 forks source link

TCK: TckParticipantTests require implementations to block on methods which return CompletionStage #228

Closed xstefank closed 5 years ago

xstefank commented 5 years ago

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.