Fix test race in test_container_jobs

The test case test_container_jobs has a race. It asserts two jobs with
enforced order. However the jobs triggered aren't forces into any
particular order so in some cases the validation fails. Fix this by
asserting unordered.

Change-Id: I22908cf5b4ed0117cdb93b226f70cf4f9d851795
This commit is contained in:
Tobias Henkel 2019-03-07 21:20:48 +01:00
parent 6a9d029834
commit 80bac8d30c
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 1 additions and 1 deletions

View File

@ -4770,7 +4770,7 @@ class TestContainerJobs(AnsibleZuulTestCase):
self.assertHistory([
dict(name='container-machine', result='SUCCESS', changes='1,1'),
dict(name='container-native', result='SUCCESS', changes='1,1'),
])
], ordered=False)
class TestProvidesRequiresPause(AnsibleZuulTestCase):