Skip to content

Commit

Permalink
[Eloquent] Don't check history depth if RMW_QOS_POLICY_HISTORY_KEEP_A…
Browse files Browse the repository at this point in the history
…LL (ros2#595)

Backport of ros2#593

Signed-off-by: Dan Rose <dan@digilabs.io>
  • Loading branch information
rotu committed Mar 11, 2020
1 parent b6f6492 commit 5322489
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rcl/test/rcl/test_get_actual_qos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ TEST_P_RMW(TestPublisherGetActualQoS, test_publisher_get_qos_settings)
EXPECT_EQ(
qos->history,
parameters.qos_expected.history);
EXPECT_EQ(
qos->depth,
parameters.qos_expected.depth);
if (parameters.qos_expected.history == RMW_QOS_POLICY_HISTORY_KEEP_LAST) {
EXPECT_EQ(qos->depth, parameters.qos_expected.depth);
}
EXPECT_EQ(
qos->reliability,
parameters.qos_expected.reliability);
Expand Down Expand Up @@ -222,9 +222,9 @@ TEST_P_RMW(TestSubscriptionGetActualQoS, test_subscription_get_qos_settings)
EXPECT_EQ(
qos->history,
parameters.qos_expected.history);
EXPECT_EQ(
qos->depth,
parameters.qos_expected.depth);
if (parameters.qos_expected.history == RMW_QOS_POLICY_HISTORY_KEEP_LAST) {
EXPECT_EQ(qos->depth, parameters.qos_expected.depth);
}
EXPECT_EQ(
qos->reliability,
parameters.qos_expected.reliability);
Expand Down

0 comments on commit 5322489

Please sign in to comment.