Fix tests that were not properly torn down (#1073)

Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>
This commit is contained in:
Devin Bonnie 2020-05-06 09:04:45 -07:00 committed by GitHub
parent f160a8bc1d
commit d10f7b7c62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -15,8 +15,8 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <iostream> #include <iostream>
#include <string>
#include <memory> #include <memory>
#include <string>
#include "rclcpp/exceptions.hpp" #include "rclcpp/exceptions.hpp"
#include "rclcpp/publisher.hpp" #include "rclcpp/publisher.hpp"
@ -51,6 +51,10 @@ public:
{ {
rclcpp::init(0, nullptr); rclcpp::init(0, nullptr);
} }
static void TearDownTestCase()
{
rclcpp::shutdown();
}
protected: protected:
void SetUp() {} void SetUp() {}

View file

@ -44,6 +44,10 @@ public:
{ {
rclcpp::init(0, nullptr); rclcpp::init(0, nullptr);
} }
static void TearDownTestCase()
{
rclcpp::shutdown();
}
protected: protected:
void SetUp() {} void SetUp() {}