Skip to content

Commit

Permalink
Added a test to check if a custom subscriber was created correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
bks-ol committed Jan 19, 2025
1 parent 52ab4b0 commit 5dbd654
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rclcpp/test/rclcpp/test_create_custom_subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ TEST_F(TestCreateSubscription, create) {
using AllocatorT = std::allocator<void>;
using SubscriptionT = CustomSubscription<MessageT, AllocatorT>;
using CallbackMessageT =
typename rclcpp::subscription_traits::has_message_type<CallbackT>::type;
typename rclcpp::subscription_traits::has_message_type<CallbackT>::type;
using MessageMemoryStrategyT =
rclcpp::message_memory_strategy::MessageMemoryStrategy<CallbackMessageT,
AllocatorT>;
rclcpp::message_memory_strategy::MessageMemoryStrategy<CallbackMessageT, AllocatorT>;

auto subscription = rclcpp::create_subscription<
MessageT, CallbackT, AllocatorT, SubscriptionT, MessageMemoryStrategyT>(
Expand Down

0 comments on commit 5dbd654

Please sign in to comment.