Skip to content

Commit 0611905

Browse files
committed
Assert <=
1 parent 30af195 commit 0611905

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/worker/test_worker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ def reserve_asserts(self, ctx: SlotReserveContext) -> None:
540540
# where the python reserve function appears to complete, but Rust doesn't see that.
541541
# This isn't solvable without redoing a chunk of pyo3-asyncio. So we only check
542542
# that the permits passed to release line up.
543+
assert ss.highest_seen_reserve_on_release <= ss.releases
543544
assert ss.used == 5
544545
assert ss.seen_sticky_kinds == {True, False}
545546
assert ss.seen_slot_kinds == {"workflow", "activity", "local-activity", "nexus"}

0 commit comments

Comments
 (0)