Skip to content

Commit

Permalink
Fix tests that were not properly torn down (ros2#1073)
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>
  • Loading branch information
dabonnie authored and Joshua Hampp committed Jul 7, 2020
1 parent 1337714 commit 8fc0c37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rclcpp/test/test_publisher_subscription_count_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include <gtest/gtest.h>

#include <iostream>
#include <string>
#include <memory>
#include <string>

#include "rclcpp/exceptions.hpp"
#include "rclcpp/publisher.hpp"
Expand Down Expand Up @@ -51,6 +51,10 @@ class TestPublisherSubscriptionCount : public ::testing::TestWithParam<TestParam
{
rclcpp::init(0, nullptr);
}
static void TearDownTestCase()
{
rclcpp::shutdown();
}

protected:
void SetUp() {}
Expand Down
4 changes: 4 additions & 0 deletions rclcpp/test/test_subscription_publisher_count_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class TestSubscriptionPublisherCount : public ::testing::TestWithParam<TestParam
{
rclcpp::init(0, nullptr);
}
static void TearDownTestCase()
{
rclcpp::shutdown();
}

protected:
void SetUp() {}
Expand Down

0 comments on commit 8fc0c37

Please sign in to comment.