Skip to content

Commit 47781f7

Browse files
authored
Fix Flaky Test: test_custom_slot_supplier (#1126)
* Remove slot assert * Assert <= * >=
1 parent 1afaa44 commit 47781f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/worker/test_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +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
543+
assert ss.highest_seen_reserve_on_release >= ss.releases
544544
assert ss.used == 5
545545
assert ss.seen_sticky_kinds == {True, False}
546546
assert ss.seen_slot_kinds == {"workflow", "activity", "local-activity", "nexus"}

0 commit comments

Comments
 (0)