Skip to content

Commit

Permalink
Relax job status check in test_delete_user_cancel_all_jobs
Browse files Browse the repository at this point in the history
In some systems, the job status may be updated quickly enough from "deleting" to "deleted".
  • Loading branch information
davelopez committed Feb 19, 2025
1 parent 2acce63 commit 065a045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy_test/api/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ def test_delete_user_cancel_all_jobs(self):
# Delete user will cancel all jobs
self._delete(f"users/{user_id}", admin=True)

# Get the job state again (this time as admin), it should be deleting
# Get the job state again (this time as admin), it should be deleting or deleted
job_response = self._get(f"jobs/{job_id}", admin=True).json()
assert job_response["state"] == "deleting", job_response
assert job_response["state"] in ["deleting", "deleted"], job_response

@requires_new_user
def test_information(self):
Expand Down

0 comments on commit 065a045

Please sign in to comment.