Skip to content

Commit 0de8dfc

Browse files
committed
fix: timing race condition in test.
1 parent 16ab2ba commit 0de8dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/tests/test_postprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async def test_postprocessing_worker_processes_queue(client):
118118
records = result.scalars().all()
119119

120120
for record in records:
121-
assert record.status == "postprocessing", "Both uploads should be in postprocessing"
121+
assert record.status in ("postprocessing", "completed"), "Upload should be in postprocessing or already completed"
122122

123123
completed = await wait_for_processing([upload1_id, upload2_id])
124124
assert completed, "Processing should complete within timeout"

0 commit comments

Comments
 (0)