fix: preserve pending occurrence pagination bounds
This commit is contained in:
@@ -242,8 +242,8 @@ async def test_rpc_schedule_occurrences_pagination_and_pending(tmp_path) -> None
|
||||
assert first["total"] == 4
|
||||
assert first["cursor"] is None
|
||||
assert first["limit"] == 2
|
||||
# The pending synthesis prepends one row to the stored page.
|
||||
assert len(first["occurrences"]) == 3
|
||||
# The pending synthesis consumes one slot from the stored page.
|
||||
assert len(first["occurrences"]) == 2
|
||||
pending = first["occurrences"][0]
|
||||
assert pending["kind"] == "pending"
|
||||
assert pending["schedule_id"] == "s"
|
||||
|
||||
Reference in New Issue
Block a user