diff --git a/test/test_api_usage.py b/test/test_api_usage.py index 46df39384..c53d46f01 100644 --- a/test/test_api_usage.py +++ b/test/test_api_usage.py @@ -970,7 +970,7 @@ class TestRepoBuilds(ApiTestCase): params=dict(repository=ADMIN_ACCESS_USER + '/building')) assert len(json['builds']) > 0 - build = json['builds'][0] + build = json['builds'][-1] assert 'id' in build assert 'status' in build