Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/api/test_notification_subscriptions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,9 @@ async def test_item_delete_cascades_its_subscriptions_and_still_tombstones(clien
)
).scalars()
mine = [p for p in payloads if p["info_item_id"] == item_id]
assert mine and mine[-1]["revoked"] is True
# The SELECT has no ORDER BY, so the newest announcement is the highest
# generation, not the last row: CI returned generation 2 before 1 (#368 deploy).
assert mine and max(mine, key=lambda p: p["generation"])["revoked"] is True


@pytest.mark.asyncio
Expand Down
Loading