Fix test
This commit is contained in:
parent
a0706d20ae
commit
10e2eabb1c
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Reference in a new issue