Skip to content

Commit

Permalink
Break from the loop on success
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaretnikov authored and Nikita Karetnikov committed Apr 30, 2024
1 parent d3f4a9f commit d36ff4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -317,6 +318,7 @@ def test_api_get_build_one_auth_packages(testclient):
continue
assert len(r.data) == 5
success = True
break
assert success


Expand Down

0 comments on commit d36ff4c

Please sign in to comment.