Skip to content

Commit a4ce090

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

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/blackbox/common/DDSBlackboxTestsListeners.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3555,11 +3555,12 @@ TEST(DDSStatus, several_writers_on_unack_sample_removed)
35553555
.init();
35563556
ASSERT_TRUE(ack_disabled_writer.isInitialized());
35573557

3558-
best_effort_writer.wait_discovery();
3559-
reliable_writer.wait_discovery();
3560-
ack_disabled_writer.wait_discovery();
3561-
best_effort_reader.wait_discovery();
3562-
reliable_reader.wait_discovery();
3558+
// The only non matching case is the best effort writer with the reliable reader
3559+
best_effort_writer.wait_discovery(1u, std::chrono::seconds::zero());
3560+
reliable_writer.wait_discovery(2u, std::chrono::seconds::zero());
3561+
ack_disabled_writer.wait_discovery(2u, std::chrono::seconds::zero());
3562+
best_effort_reader.wait_discovery(std::chrono::seconds::zero(), 3u);
3563+
reliable_reader.wait_discovery(std::chrono::seconds::zero(), 2u);
35633564

35643565
auto best_effort_data = default_helloworld_data_generator();
35653566
auto reliable_data = best_effort_data;

0 commit comments

Comments
 (0)