diff options
Diffstat (limited to 'tests/unit/test_scheduler.py')
-rw-r--r-- | tests/unit/test_scheduler.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/test_scheduler.py b/tests/unit/test_scheduler.py index eb5ee826f..d4fa98d1e 100644 --- a/tests/unit/test_scheduler.py +++ b/tests/unit/test_scheduler.py @@ -5731,8 +5731,7 @@ For CI problems and help debugging, contact ci@example.org""" self.assertEqual(A.reported, 2) self.assertTrue(re.search('project-merge .* NODE_FAILURE', A.messages[1])) - self.assertTrue(re.search('project-test1 .* SKIPPED', A.messages[1])) - self.assertTrue(re.search('project-test2 .* SKIPPED', A.messages[1])) + self.assertTrue('Skipped 2 jobs' in A.messages[1]) def test_nodepool_resources(self): "Test that resources are reported" @@ -6854,7 +6853,7 @@ class TestDependencyGraph(ZuulTestCase): self.assertHistory([ dict(name='build', result='FAILURE', changes='1,1'), ], ordered=False) - self.assertIn('SKIPPED', A.messages[0]) + self.assertIn('Skipped 1 job', A.messages[0]) class TestDuplicatePipeline(ZuulTestCase): |