Skip to content

Commit d559fc1

Browse files
committed
increase wait time for camera test
1 parent 03585e2 commit d559fc1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

test/test_3d_reconstruction.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def setUpClass(cls):
5050
rclpy.init()
5151
cls.node = rclpy.create_node("test_node")
5252

53+
# wait for topics to be setup
54+
time.sleep(10)
55+
5356
@classmethod
5457
def tearDownClass(cls):
5558
"""Clean up ROS resources after tests."""
@@ -64,8 +67,6 @@ def tearDownClass(cls):
6467

6568
def test_camera_topics(self, proc_output):
6669
"""Test that camera topics are publishing msgs."""
67-
# First wait for the cameras to start publishing
68-
time.sleep(3)
6970

7071
msgs_left = []
7172
msgs_right = []
@@ -103,8 +104,6 @@ def test_camera_topics(self, proc_output):
103104

104105
def test_camera_images(self, proc_output):
105106
"""Test that camera images are published."""
106-
# First wait for the cameras to start publishing
107-
time.sleep(3)
108107

109108
# Check actual message receipt
110109
msgs_left = []

0 commit comments

Comments
 (0)