From f8dfdc155f429517f9d5dc9d8da5192737ba3912 Mon Sep 17 00:00:00 2001 From: Andrey Velichkevich Date: Tue, 16 Jan 2024 21:53:23 +0000 Subject: [PATCH] Fix e2e to create from image --- sdk/python/test/e2e/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python/test/e2e/utils.py b/sdk/python/test/e2e/utils.py index a52393bbfc..b527ab8fec 100644 --- a/sdk/python/test/e2e/utils.py +++ b/sdk/python/test/e2e/utils.py @@ -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.