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 2b34859
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 @@ -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

0 comments on commit 2b34859

Please sign in to comment.