Skip to content

Commit 56e146c

Browse files
committed
Merge commit 'a2e8194549ddf44b64b7bcffc7f8061a1227e4c2' into feat/execution-speed-override
2 parents df6f5a7 + a2e8194 commit 56e146c

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)