Skip to content

Commit

Permalink
Increase wait time for running task tests
Browse files Browse the repository at this point in the history
Test failing with postgres. Task still pending after 2.5 seconds.
  • Loading branch information
beenje committed Aug 6, 2023
1 parent dd47fe0 commit cac01f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quetz/tests/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async def test_running_task(db, user, package_version, supervisor):
assert task.status == TaskStatus.pending

# wait for task status to change
for i in range(50):
for i in range(100):
time.sleep(0.05)

db.refresh(task)
Expand Down Expand Up @@ -283,7 +283,7 @@ async def test_restart_worker_process(
assert task.status == TaskStatus.pending

# wait for task status to change
for i in range(50):
for i in range(100):
time.sleep(0.05)

db.refresh(task)
Expand Down

0 comments on commit cac01f6

Please sign in to comment.