Skip to content

Commit 78d5a7c

Browse files
committed
Merge commit '56e146c65633cd687bc4faea5b3e4349bfcb9a6f' into feat/demonstration-recording
2 parents bd0f60c + 56e146c commit 78d5a7c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎tests/integration/test_digital_io.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ async def scenario():
7272
index = await rbt.delay(0.1)
7373
assert index >= 1, "a stale index-less OK must not stand in for the ack"
7474
assert await rbt.wait_command(index, timeout=5)
75-
for _ in range(5):
76-
await rbt.io(timeout=1e-4)
77-
assert await rbt.pose() is not None
75+
# A deadline that lapses mid-flight: the reply lands afterwards
76+
# and must be dropped before the next query goes out.
77+
assert await rbt.io(timeout=1e-4) is None
78+
await asyncio.sleep(0.1)
79+
pose = await rbt.pose()
80+
assert pose is not None and len(pose) == 6
7881

7982
asyncio.run(scenario())

0 commit comments

Comments
 (0)