From 6599d69c77f33efbaf99556939739e1464d708a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Dom=C3=ADnguez=20L=C3=B3pez?= <116071334+Mario-DL@users.noreply.github.com> Date: Wed, 4 Jun 2025 11:42:28 +0200 Subject: [PATCH] Assert HistoryQoS in test_info_by_topic (#1242) Signed-off-by: Mario Dominguez (cherry picked from commit b4f0c4c28eea38b59fc1cfe6520e8e63589f0783) --- rcl/test/rcl/test_info_by_topic.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rcl/test/rcl/test_info_by_topic.cpp b/rcl/test/rcl/test_info_by_topic.cpp index de8849b31..4341e4bed 100644 --- a/rcl/test/rcl/test_info_by_topic.cpp +++ b/rcl/test/rcl/test_info_by_topic.cpp @@ -118,6 +118,8 @@ class TestInfoByTopicFixture : public ::testing::Test qos_profile1.liveliness_lease_duration.nsec, qos_profile2.liveliness_lease_duration.nsec); EXPECT_EQ(qos_profile1.durability, qos_profile2.durability); + EXPECT_EQ(qos_profile1.history, qos_profile2.history); + EXPECT_EQ(qos_profile1.depth, qos_profile2.depth); } }; @@ -303,7 +305,7 @@ TEST_F(TestInfoByTopicFixture, test_rcl_get_publishers_subscription_info_by_topi { rmw_qos_profile_t default_qos_profile = rmw_qos_profile_system_default; default_qos_profile.history = RMW_QOS_POLICY_HISTORY_KEEP_LAST; - default_qos_profile.depth = 0; + default_qos_profile.depth = 9; default_qos_profile.reliability = RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT; default_qos_profile.durability = RMW_QOS_POLICY_DURABILITY_VOLATILE; default_qos_profile.lifespan = {10, 0};