Skip to content

Commit 8be39c2

Browse files
authored
Fix flaky test: incompatible qos conditions (#2431)
* Fix flaky test Signed-off-by: Ricardo González Moreno <[email protected]> * Fix variable type name Signed-off-by: Ricardo González Moreno <[email protected]>
1 parent 2ce1f64 commit 8be39c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/blackbox/api/dds-pim/PubSubReader.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,10 @@ class PubSubReader
721721
}
722722

723723
void incompatible_qos(
724-
eprosima::fastdds::dds::OfferedIncompatibleQosStatus status)
724+
eprosima::fastdds::dds::RequestedIncompatibleQosStatus status)
725725
{
726726
std::unique_lock<std::mutex> lock(incompatible_qos_mutex_);
727-
times_incompatible_qos_++;
727+
times_incompatible_qos_ += status.total_count_change;
728728
last_incompatible_qos_ = status.last_policy_id;
729729
incompatible_qos_cv_.notify_one();
730730
}
@@ -1926,12 +1926,10 @@ class PubSubReaderWithWaitsets : public PubSubReader<TypeSupport>
19261926
if (status.alive_count_change == 1)
19271927
{
19281928
reader_.liveliness_recovered();
1929-
19301929
}
19311930
else if (status.not_alive_count_change == 1)
19321931
{
19331932
reader_.liveliness_lost();
1934-
19351933
}
19361934
}
19371935

0 commit comments

Comments
 (0)