Skip to content

Commit

Permalink
Merge pull request #19661 from davelopez/fix_flaky_job_state_in_delet…
Browse files Browse the repository at this point in the history
…e_user_cancel_jobs_test

Relax job status check in test_delete_user_cancel_all_jobs
  • Loading branch information
mvdbeek authored Feb 19, 2025
2 parents 67da023 + 065a045 commit b1830c4
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 b1830c4

Please sign in to comment.