eProsima / Fast-DDS

The most complete DDS - Proven: Plenty of success cases. Looking for commercial support? Contact info@eprosima.com
https://eprosima.com
Apache License 2.0
2.16k stars 765 forks source link

[21219] Fix flakyness on test with participants in the same container #5010

Closed JesusPoderoso closed 3 months ago

JesusPoderoso commented 3 months ago

Description

Some example tests have been failing due to both participants trying to print in stdout simultaneously (not mutex control on printing). That has caused issues on CI (check this nightly for instance). This PR fixes the counting method so the line is not skipped if already found one of the expected outputs (SENT or RECEIVED)

Example of the obtained output: Sample: 'Delivery mechanisms' with index: 'Sample: '2Delivery mechanisms' with index: '' SENT2' RECEIVED

Contributor Checklist

Reviewer Checklist