Skip to content

Commit

Permalink
fix video test
Browse files Browse the repository at this point in the history
Signed-off-by: chapulina <[email protected]>
  • Loading branch information
chapulina committed Aug 11, 2019
1 parent 0f407dd commit 890ca64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gazebo_plugins/test/test_gazebo_ros_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ TEST_F(GazeboRosVideoTest, VideoSubscribeTest)
model_vis = scene->GetVisual("box_display");
link_vis = scene->GetVisual("box_display::base_link");
visual_vis = scene->GetVisual("box_display::base_link::visual");
video_vis = scene->GetVisual("box_display::base_link::visual::video_visual");
video_vis = scene->GetVisual(
"box_display::base_link::visual::video_visual::display_video_controller");
gazebo::common::Time::MSleep(100);
}
EXPECT_LT(sleep, max_sleep);
Expand Down Expand Up @@ -98,7 +99,8 @@ TEST_F(GazeboRosVideoTest, VideoSubscribeTest)
gazebo::event::Events::postRender();

EXPECT_NE(nullptr, scene->GetVisual("box_display"));
EXPECT_NE(nullptr, scene->GetVisual("box_display::base_link::visual::video_visual"));
EXPECT_NE(nullptr, scene->GetVisual(
"box_display::base_link::visual::video_visual::display_video_controller"));
}
}

Expand Down

0 comments on commit 890ca64

Please sign in to comment.