From d36ff4c247cc4614500157436e8b7d9221bae5cc Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Sat, 20 Apr 2024 22:09:18 +0200 Subject: [PATCH] Break from the loop on success --- tests/test_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_api.py b/tests/test_api.py index 414d76fbd..23a2060b6 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -292,6 +292,7 @@ def test_api_get_build_one_auth(testclient): continue assert r.data.status == schema.BuildStatus.COMPLETED.value success = True + break assert success @@ -317,6 +318,7 @@ def test_api_get_build_one_auth_packages(testclient): continue assert len(r.data) == 5 success = True + break assert success