Browse Source

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
tags/3.7.0
Tobias Henkel 2 months ago
parent
commit
80bac8d30c
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tests/unit/test_v3.py

+ 1
- 1
tests/unit/test_v3.py View File

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

Loading…
Cancel
Save