Browse Source

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
changes/32/734032/1
Tobias Henkel 1 year ago
parent
commit
05bd907928
No known key found for this signature in database GPG Key ID: 3750DEC158E5FA2
  1. 1
      tests/unit/test_scheduler.py

1
tests/unit/test_scheduler.py

@ -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]

Loading…
Cancel
Save