From 980fd6dbbd33b9dc8789667384765f5dfb060dad Mon Sep 17 00:00:00 2001 From: Lucas Walter Date: Sat, 19 Mar 2016 06:38:48 -0700 Subject: [PATCH] #408 If I don't launch gazebo, and have the test return success immediately, the test doesn't run out of time. I'm guessing gazebo isn't shutting down properly at the end of the test? --- gazebo_plugins/test/camera/camera.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gazebo_plugins/test/camera/camera.cpp b/gazebo_plugins/test/camera/camera.cpp index 83fa8b98b..54e7ab3b1 100644 --- a/gazebo_plugins/test/camera/camera.cpp +++ b/gazebo_plugins/test/camera/camera.cpp @@ -59,6 +59,7 @@ TEST_F(CameraTest, cameraSubscribeTest) double time_diff = (ros::Time::now() - image_stamp_).toSec(); ROS_INFO_STREAM(time_diff); EXPECT_LT(time_diff, 0.5); + cam_sub_.shutdown(); } int main(int argc, char** argv)