Skip to content

Commit 140a753

Browse files
mergify[bot]UbuntuZyrinfujitatomoya
authored
Remove duplicate test cases in TestAnySubscriptionCallback::is_serialized_message_callback (backport #3104) (#3107)
* remove duplicate test cases in TestAnySubscriptionCallback::is_serialized_message_callback (#3104) Signed-off-by: Ubuntu <ubuntu@ubuntu-2404-ros-rolling.lxd> Co-authored-by: Ubuntu <ubuntu@ubuntu-2404-ros-rolling.lxd> (cherry picked from commit af78e01) Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com> Co-authored-by: Alexis Tsogias <1114095+Zyrin@users.noreply.github.com> Co-authored-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
1 parent 67d29d1 commit 140a753

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

rclcpp/test/rclcpp/test_any_subscription_callback.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,6 @@ TEST_F(TestAnySubscriptionCallback, is_serialized_message_callback) {
110110
std::make_shared<rclcpp::SerializedMessage>(),
111111
rclcpp::MessageInfo{}));
112112
}
113-
{
114-
rclcpp::AnySubscriptionCallback<test_msgs::msg::Empty> asc;
115-
asc.set([](const rclcpp::SerializedMessage &, const rclcpp::MessageInfo &) {});
116-
EXPECT_TRUE(asc.is_serialized_message_callback());
117-
EXPECT_NO_THROW(
118-
asc.dispatch(
119-
std::make_shared<rclcpp::SerializedMessage>(),
120-
rclcpp::MessageInfo{}));
121-
}
122113
{
123114
rclcpp::AnySubscriptionCallback<test_msgs::msg::Empty> asc;
124115
asc.set([](std::unique_ptr<rclcpp::SerializedMessage>) {});

0 commit comments

Comments
 (0)