Skip to content

Commit

Permalink
[D] Don't check history depth if RMW_QOS_POLICY_HISTORY_KEEP_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu committed Mar 10, 2020
1 parent f01b4e8 commit c52d79c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rcl/test/rcl/test_get_actual_qos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ TEST_P_RMW(TestGetActualQoS, 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

0 comments on commit c52d79c

Please sign in to comment.