Skip to content

Commit

Permalink
Fix incorrect if-condition in test_create_with_invalid_url
Browse files Browse the repository at this point in the history
Signed-off-by: Cooper Tseng <[email protected]>
  • Loading branch information
brandboat committed Sep 2, 2024
1 parent ba771f7 commit 1605bb2
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 len(image_conds) > 0:
if "Initialized" == image_conds[-1].get("type"):
break
sleep(3)

Expand Down

0 comments on commit 1605bb2

Please sign in to comment.