Skip to content

Commit

Permalink
fix bug in dds tests librs.py with wait_for_devices()
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Sep 5, 2024
1 parent afcdac5 commit bb538e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unit-tests/dds/librs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ def wait_for_devices( context, mask=product_line.any, n=1, timeout=3, throw=None
timer = _Timer( timeout )
devices = context.query_devices( mask )
if len(devices) >= n:
if not exact or len(devices) == n:
if not exact:
return devices
if len(devices) == n:
if n == 1:
return devices[0]
return devices
#
context.set_devices_changed_callback( _device_change_callback )
Expand Down

0 comments on commit bb538e0

Please sign in to comment.