Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't check history depth if RMW_QOS_POLICY_HISTORY_KEEP_ALL #593

Merged
merged 1 commit into from
Mar 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions rcl/test/rcl/test_get_actual_qos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,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 Expand Up @@ -226,9 +226,9 @@ TEST_P_RMW(TestSubscriptionGetActualQoS, test_subscription_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