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>
  • Loading branch information
rotu authored Mar 11, 2020
1 parent ec43777 commit 4835a94
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 4835a94

Please sign in to comment.