diff --git a/mujoco_ros/test/mujoco_ros_plugin_test.cpp b/mujoco_ros/test/mujoco_ros_plugin_test.cpp index ba3e468..dbb634e 100644 --- a/mujoco_ros/test/mujoco_ros_plugin_test.cpp +++ b/mujoco_ros/test/mujoco_ros_plugin_test.cpp @@ -67,7 +67,7 @@ class LoadedPluginFixture : public ::testing::Test { protected: std::unique_ptr nh; - TestPlugin *test_plugin; + TestPlugin *test_plugin = nullptr; MujocoEnvTestWrapper *env_ptr; void SetUp() override @@ -96,6 +96,8 @@ class LoadedPluginFixture : public ::testing::Test break; } } + + ASSERT_NE(test_plugin, nullptr) << "TestPlugin not found!"; } void TearDown() override