Skip to content

Commit 143b033

Browse files
Assert HistoryQoS in test_info_by_topic (ros2#1242) (ros2#1247)
(cherry picked from commit b4f0c4c) Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com>
1 parent 4bba3ee commit 143b033

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rcl/test/rcl/test_info_by_topic.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ class TestInfoByTopicFixture : public ::testing::Test
118118
qos_profile1.liveliness_lease_duration.nsec,
119119
qos_profile2.liveliness_lease_duration.nsec);
120120
EXPECT_EQ(qos_profile1.durability, qos_profile2.durability);
121+
EXPECT_EQ(qos_profile1.history, qos_profile2.history);
122+
EXPECT_EQ(qos_profile1.depth, qos_profile2.depth);
121123
}
122124
};
123125

@@ -303,7 +305,7 @@ TEST_F(TestInfoByTopicFixture, test_rcl_get_publishers_subscription_info_by_topi
303305
{
304306
rmw_qos_profile_t default_qos_profile = rmw_qos_profile_system_default;
305307
default_qos_profile.history = RMW_QOS_POLICY_HISTORY_KEEP_LAST;
306-
default_qos_profile.depth = 0;
308+
default_qos_profile.depth = 9;
307309
default_qos_profile.reliability = RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT;
308310
default_qos_profile.durability = RMW_QOS_POLICY_DURABILITY_VOLATILE;
309311
default_qos_profile.lifespan = {10, 0};

0 commit comments

Comments
 (0)