Skip to content

Commit

Permalink
Fix e2e to create from image
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyvelich committed Jan 16, 2024
1 parent 5031fee commit f8dfdc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/python/test/e2e/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def verify_job_e2e(

# Job should have Created, Running, and Succeeded conditions.
conditions = client.get_job_conditions(job=job)
if len(conditions) != 3:
# If Job is complete fast, it has 2 conditions: Created and Succeeded.
if len(conditions) != 3 and len(conditions) != 2:
raise Exception(f"{client.job_kind} conditions are invalid: {conditions}")

# Job should have correct conditions.
Expand Down

0 comments on commit f8dfdc1

Please sign in to comment.