Skip to content

Commit 2b34859

Browse files
committed
[Eloquent] Don't check history depth if RMW_QOS_POLICY_HISTORY_KEEP_ALL (ros2#595)
Backport of ros2#593 Signed-off-by: Dan Rose <[email protected]>
1 parent b6f6492 commit 2b34859

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rcl/test/rcl/test_get_actual_qos.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ TEST_P_RMW(TestPublisherGetActualQoS, test_publisher_get_qos_settings)
167167
EXPECT_EQ(
168168
qos->history,
169169
parameters.qos_expected.history);
170-
EXPECT_EQ(
171-
qos->depth,
172-
parameters.qos_expected.depth);
170+
if (parameters.qos_expected.history == RMW_QOS_POLICY_HISTORY_KEEP_LAST) {
171+
EXPECT_EQ(qos->depth, parameters.qos_expected.depth);
172+
}
173173
EXPECT_EQ(
174174
qos->reliability,
175175
parameters.qos_expected.reliability);

0 commit comments

Comments
 (0)