From b185210eafd5507107d01da0315cc16dfb5f462f Mon Sep 17 00:00:00 2001 From: elianalf <62831776+elianalf@users.noreply.github.com> Date: Tue, 2 Apr 2024 10:59:18 +0200 Subject: [PATCH] Refs #20653: Increase sleep to miss the deadline in test exclusive_kind_keyed_reliable_deadline Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> --- .../common/DDSBlackboxTestsOwnershipQos.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/blackbox/common/DDSBlackboxTestsOwnershipQos.cpp b/test/blackbox/common/DDSBlackboxTestsOwnershipQos.cpp index dabb28a2371..5b8939baadd 100644 --- a/test/blackbox/common/DDSBlackboxTestsOwnershipQos.cpp +++ b/test/blackbox/common/DDSBlackboxTestsOwnershipQos.cpp @@ -748,7 +748,7 @@ TEST_P(OwnershipQos, exclusive_kind_non_keyed_reliable_deadline) writer1.send_sample(data.front()); denied_samples.push_back(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(110)); + std::this_thread::sleep_for(std::chrono::milliseconds(80)); writer1.send_sample(data.front()); data.pop_front(); @@ -800,13 +800,13 @@ TEST_P(OwnershipQos, exclusive_kind_keyed_reliable_deadline) data.pop_front(); writer1.send_sample(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(30)); writer2.send_sample(data.front()); data.pop_front(); writer2.send_sample(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(30)); writer1.send_sample(data.front()); denied_samples.push_back(data.front()); @@ -814,13 +814,13 @@ TEST_P(OwnershipQos, exclusive_kind_keyed_reliable_deadline) writer1.send_sample(data.front()); denied_samples.push_back(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(30)); writer2.send_sample(data.front()); data.pop_front(); writer2.send_sample(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(30)); writer1.send_sample(data.front()); denied_samples.push_back(data.front()); @@ -828,13 +828,13 @@ TEST_P(OwnershipQos, exclusive_kind_keyed_reliable_deadline) writer1.send_sample(data.front()); denied_samples.push_back(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(30)); writer2.send_sample(data.front()); data.pop_front(); writer2.send_sample(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(30)); writer1.send_sample(data.front()); denied_samples.push_back(data.front()); @@ -842,7 +842,7 @@ TEST_P(OwnershipQos, exclusive_kind_keyed_reliable_deadline) writer1.send_sample(data.front()); denied_samples.push_back(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(80)); writer1.send_sample(data.front()); data.pop_front(); @@ -853,7 +853,7 @@ TEST_P(OwnershipQos, exclusive_kind_keyed_reliable_deadline) writer1.send_sample(data.front()); denied_samples.push_back(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(80)); writer1.send_sample(data.front()); data.pop_front(); @@ -864,7 +864,7 @@ TEST_P(OwnershipQos, exclusive_kind_keyed_reliable_deadline) writer1.send_sample(data.front()); denied_samples.push_back(data.front()); data.pop_front(); - std::this_thread::sleep_for(std::chrono::milliseconds(50)); + std::this_thread::sleep_for(std::chrono::milliseconds(80)); writer1.send_sample(data.front()); data.pop_front();