Skip to content

Commit

Permalink
Fix test_create_with_invalid_url
Browse files Browse the repository at this point in the history
Signed-off-by: Cooper Tseng <cooper.tseng@suse.com>
  • Loading branch information
brandboat authored and bk201 committed Sep 4, 2024
1 parent 1605bb2 commit 586d6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harvester_e2e_tests/apis/test_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_create_with_invalid_url(api_client, gen_unique_name, wait_timeout):
while endtime > datetime.now():
code, data = api_client.images.get(unique_name)
image_conds = data.get('status', {}).get('conditions', [])
if "Initialized" == image_conds[-1].get("type"):
if len(image_conds) > 0 and "Initialized" == image_conds[-1].get("type"):
break
sleep(3)

Expand Down

0 comments on commit 586d6a7

Please sign in to comment.