Skip to content

Commit

Permalink
fix RHEL CI warning for rosbag2_storage_mcap.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed Dec 15, 2024
1 parent 33bb47c commit d79ade5
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,12 @@ TEST(test_message_definition_cache, get_service_message_definitions)
TEST(test_local_message_definition_source, throw_definition_not_found_for_unknown_msg)
{
MessageDefinitionCache source;
ASSERT_THROW({ source.get_full_text("rosbag2_test_msgdefs/msg/UnknownMessage"); },
rosbag2_storage_mcap::internal::DefinitionNotFoundError);
ASSERT_THROW({
source.get_full_text("rosbag2_test_msgdefs/msg/UnknownMessage");
}, rosbag2_storage_mcap::internal::DefinitionNotFoundError);

// Throw DefinitionNotFoundError for not found message definition package name
ASSERT_THROW({ source.get_full_text("not_found_msgdefs_pkg/msg/UnknownMessage"); },
rosbag2_storage_mcap::internal::DefinitionNotFoundError);
ASSERT_THROW({
source.get_full_text("not_found_msgdefs_pkg/msg/UnknownMessage");
}, rosbag2_storage_mcap::internal::DefinitionNotFoundError);
}

0 comments on commit d79ade5

Please sign in to comment.