Skip to content

Commit 274b356

Browse files
Fix several_writers_on_unack_sample_removed flaky test (#5716) (#5719)
Signed-off-by: Mario Dominguez <[email protected]> (cherry picked from commit fb68bae) Co-authored-by: Mario Domínguez López <[email protected]>
1 parent be82cba commit 274b356

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/blackbox/common/DDSBlackboxTestsListeners.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -3425,11 +3425,12 @@ TEST(DDSStatus, several_writers_on_unack_sample_removed)
34253425
.init();
34263426
ASSERT_TRUE(ack_disabled_writer.isInitialized());
34273427

3428-
best_effort_writer.wait_discovery();
3429-
reliable_writer.wait_discovery();
3430-
ack_disabled_writer.wait_discovery();
3431-
best_effort_reader.wait_discovery();
3432-
reliable_reader.wait_discovery();
3428+
// The only non matching case is the best effort writer with the reliable reader
3429+
best_effort_writer.wait_discovery(1u, std::chrono::seconds::zero());
3430+
reliable_writer.wait_discovery(2u, std::chrono::seconds::zero());
3431+
ack_disabled_writer.wait_discovery(2u, std::chrono::seconds::zero());
3432+
best_effort_reader.wait_discovery(std::chrono::seconds::zero(), 3u);
3433+
reliable_reader.wait_discovery(std::chrono::seconds::zero(), 2u);
34333434

34343435
auto best_effort_data = default_helloworld_data_generator();
34353436
auto reliable_data = best_effort_data;

0 commit comments

Comments
 (0)