This commit is contained in:
Joseph Schorr 2015-02-23 13:47:21 -05:00
parent a0706d20ae
commit 10e2eabb1c

View file

@ -1375,7 +1375,8 @@ class TestRepositoryBuildResource(ApiTestCase):
self.assertEquals(uuid, json['builds'][0]['id'])
# Set queue item to be picked up.
qi = database.QueueItem.get(id=1)
build_ref = database.RepositoryBuild.get(uuid=uuid)
qi = database.QueueItem.get(id=build_ref.queue_id)
qi.available = False
qi.save()