Skip to content

Commit 5dbd654

Browse files
committed
Added a test to check if a custom subscriber was created correctly.
1 parent 52ab4b0 commit 5dbd654

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rclcpp/test/rclcpp/test_create_custom_subscription.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ TEST_F(TestCreateSubscription, create) {
5858
using AllocatorT = std::allocator<void>;
5959
using SubscriptionT = CustomSubscription<MessageT, AllocatorT>;
6060
using CallbackMessageT =
61-
typename rclcpp::subscription_traits::has_message_type<CallbackT>::type;
61+
typename rclcpp::subscription_traits::has_message_type<CallbackT>::type;
6262
using MessageMemoryStrategyT =
63-
rclcpp::message_memory_strategy::MessageMemoryStrategy<CallbackMessageT,
64-
AllocatorT>;
63+
rclcpp::message_memory_strategy::MessageMemoryStrategy<CallbackMessageT, AllocatorT>;
6564

6665
auto subscription = rclcpp::create_subscription<
6766
MessageT, CallbackT, AllocatorT, SubscriptionT, MessageMemoryStrategyT>(

0 commit comments

Comments
 (0)