Skip to content

Commit 65cf834

Browse files
committed
Fix call_advertised_service test by increasing executor spin iterations
1 parent e0d8371 commit 65cf834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rosbridge_library/test/capabilities/test_service_capabilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_call_advertised_service(self):
118118
rclpy.spin_once(self.node, timeout_sec=0.1)
119119
time.sleep(0.1)
120120
loop_iterations += 1
121-
if loop_iterations > 3:
121+
if loop_iterations > 4:
122122
self.fail("Timed out waiting for service call message.")
123123

124124
self.assertFalse(self.received_message is None)
@@ -146,7 +146,7 @@ def test_call_advertised_service(self):
146146
rclpy.spin_once(self.node, timeout_sec=0.1)
147147
time.sleep(0.5)
148148
loop_iterations += 1
149-
if loop_iterations > 3:
149+
if loop_iterations > 4:
150150
self.fail("Timed out waiting for service response message.")
151151

152152
self.assertFalse(self.received_message is None)

0 commit comments

Comments
 (0)