Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Martín Rico <[email protected]>
  • Loading branch information
fmrico committed Aug 6, 2024
1 parent 2794fc4 commit 2c40fc2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@

#include "gtest/gtest.h"

using namespace std::chrono_literals;

TEST(rossdl_generation_test, image_filter_unit)
{
auto image_filter = std::make_shared<rossdl_simple_test::ImageFilter>();

auto start = image_filter->now();
while (image_filter->now() - start < 100ms) {rclcpp::spin_some(image_filter);}

// Parameters
ASSERT_TRUE(image_filter->has_parameter("description_label"));
auto param1 = image_filter->get_parameter("description_label");
Expand Down Expand Up @@ -81,6 +85,9 @@ TEST(rossdl_generation_test, consumer_unit)
{
auto consumer = std::make_shared<rossdl_simple_test::Consumer>();

auto start = consumer->now();
while (consumer->now() - start < 100ms) {rclcpp::spin_some(consumer);}

auto topics = consumer->get_topic_names_and_types();

ASSERT_EQ(topics.size(), 5u);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@

#include "gtest/gtest.h"

using namespace std::chrono_literals;

TEST(rossdl_generation_test, image_filter_unit)
{
auto image_filter = std::make_shared<system_a::ImageFilter>();

auto start = image_filter->now();
while (image_filter->now() - start < 100ms) {rclcpp::spin_some(image_filter);}

// Parameters
ASSERT_TRUE(image_filter->has_parameter("description_label"));
auto param1 = image_filter->get_parameter("description_label");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@

#include "gtest/gtest.h"

using namespace std::chrono_literals;

TEST(rossdl_generation_test, consumer_unit)
{
auto consumer = std::make_shared<system_b::Consumer>();

auto start = consumer->now();
while (consumer->now() - start < 100ms) {rclcpp::spin_some(consumer);}

auto topics = consumer->get_topic_names_and_types();

ASSERT_EQ(topics.size(), 5);
Expand Down

0 comments on commit 2c40fc2

Please sign in to comment.