Skip to content

Commit

Permalink
Don't check history depth if RMW_QOS_POLICY_HISTORY_KEEP_ALL (#593)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Rose <dan@digilabs.io>
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
  • Loading branch information
rotu authored and Blast545 committed Apr 9, 2020
1 parent c2212d1 commit 048f02a
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 @@ -171,9 +171,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 @@ -226,9 +226,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 048f02a

Please sign in to comment.