Skip to content

Commit

Permalink
Fix tests that were not properly torn down
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>
  • Loading branch information
dabonnie committed Apr 20, 2020
1 parent 911291f commit e1847a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions 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,7 +51,10 @@ class TestPublisherSubscriptionCount : public ::testing::TestWithParam<TestParam
{
rclcpp::init(0, nullptr);
}

static void TearDownTestCase()
{
rclcpp::shutdown();
}
protected:
void SetUp() {}

Expand Down
5 changes: 4 additions & 1 deletion rclcpp/test/test_subscription_publisher_count_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ class TestSubscriptionPublisherCount : public ::testing::TestWithParam<TestParam
{
rclcpp::init(0, nullptr);
}

static void TearDownTestCase()
{
rclcpp::shutdown();
}
protected:
void SetUp() {}
void TearDown() {}
Expand Down

0 comments on commit e1847a4

Please sign in to comment.