From c953447ae0094e18f6c9fd5072c1cd27eb59cef1 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Tue, 20 May 2014 18:53:00 -0400 Subject: [PATCH] Fix the tests to use a fake build that is not a moving target. --- test/test_api_usage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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