Skip to content

Commit

Permalink
revise timeout when waiting for a device
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Dec 18, 2024
1 parent 86b33fe commit e3cd133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unit-tests/dds/adapter/test-depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
context = rs.context( { 'dds': { 'enabled': True, 'domain': 123, 'participant': 'client' }} )

with test.closure( 'Wait for a device', on_fail=test.ABORT ):
dev = rs.wait_for_devices( context, rs.only_sw_devices, n=1. )
# Note: takes time for a device to enumerate, and more to get it discovered
dev = rs.wait_for_devices( context, rs.only_sw_devices, n=1., timeout=8 )

with test.closure( 'Get sensor', on_fail=test.ABORT ):
sensor = dev.first_depth_sensor()
Expand Down

0 comments on commit e3cd133

Please sign in to comment.