Fix test race in test_client_dequeue_ref

After dequeue we currently immediately release all jobs. This can lead
in seldom cases that the job is successful before the job has been
canceled by the scheduler. To fix this wait until settled between
dequeue and build release.

Change-Id: Ic788daa209a1ef7efdd58185935a5ebff2e5fb39
This commit is contained in:
Tobias Henkel 2020-06-08 10:25:26 +02:00
parent b79a83f323
commit 05bd907928
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 1 additions and 0 deletions

View File

@ -4354,6 +4354,7 @@ class TestScheduler(ZuulTestCase):
project='org/project1',
change=None,
ref='master')
self.waitUntilSettled()
self.executor_server.release('.*')
self.waitUntilSettled()
job_names = [x.name for x in self.history]