Skip to content

Commit

Permalink
Fix flaky test: incompatible qos conditions (eProsima#2431)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
richiware authored Feb 17, 2022
1 parent 2ce1f64 commit 8be39c2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/blackbox/api/dds-pim/PubSubReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,10 @@ class PubSubReader
}

void incompatible_qos(
eprosima::fastdds::dds::OfferedIncompatibleQosStatus status)
eprosima::fastdds::dds::RequestedIncompatibleQosStatus status)
{
std::unique_lock<std::mutex> lock(incompatible_qos_mutex_);
times_incompatible_qos_++;
times_incompatible_qos_ += status.total_count_change;
last_incompatible_qos_ = status.last_policy_id;
incompatible_qos_cv_.notify_one();
}
Expand Down Expand Up @@ -1926,12 +1926,10 @@ class PubSubReaderWithWaitsets : public PubSubReader<TypeSupport>
if (status.alive_count_change == 1)
{
reader_.liveliness_recovered();

}
else if (status.not_alive_count_change == 1)
{
reader_.liveliness_lost();

}
}

Expand Down

0 comments on commit 8be39c2

Please sign in to comment.