From 8419ac5dd903d80d5eb732e58817a20e137b5162 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Sat, 30 Mar 2024 15:15:44 -0400 Subject: [PATCH] Wait longer? No-Issue Signed-off-by: James Tanner --- .../integration/api/test_namespace_management.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/galaxy_ng/tests/integration/api/test_namespace_management.py b/galaxy_ng/tests/integration/api/test_namespace_management.py index c532625653..46cc1488b0 100644 --- a/galaxy_ng/tests/integration/api/test_namespace_management.py +++ b/galaxy_ng/tests/integration/api/test_namespace_management.py @@ -170,9 +170,15 @@ def test_namespace_edit_logo(galaxy_client): "avatar_url": f"{artifacts_baseurl}/images/pexels-daniel-nettesheim-1162361.jpg" } gc.put(f"_ui/v1/my-namespaces/{name}/", body=payload) - sleep(60) - wait_for_all_tasks_gk(gc) - updated_namespace = gc.get(f'_ui/v1/my-namespaces/{name}/') + # sleep(60) + # wait_for_all_tasks_gk(gc) + + for x in range(0, 20): + updated_namespace = gc.get(f'_ui/v1/my-namespaces/{name}/') + if updated_namespace["avatar_url"] != "": + break + time.sleep(5) + assert updated_namespace["avatar_url"] != "" payload = {