diff options
author | James E. Blair <jim@acmegating.com> | 2021-11-29 10:43:08 -0800 |
---|---|---|
committer | James E. Blair <jim@acmegating.com> | 2022-01-25 06:44:16 -0800 |
commit | 80e909c38585ce87371bcac900ca79ddef2720c6 (patch) | |
tree | 37dd7108338b3199b33a2a78b2f710e3ec4f2c10 /tests/unit/test_scheduler.py | |
parent | 3aa546da867225372d6818f5e11236eab989b344 (diff) | |
download | zuul-80e909c38585ce87371bcac900ca79ddef2720c6.tar.gz |
Remove disused gearman_server usages from tests
The gearman server in tests doesn't do anything anymore, therefore
these tests don't actually need to use it. Remove those references.
Change-Id: I48663a994647d6385a80d8c263c34ac8d9b8438f
Diffstat (limited to 'tests/unit/test_scheduler.py')
-rw-r--r-- | tests/unit/test_scheduler.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/unit/test_scheduler.py b/tests/unit/test_scheduler.py index a688f0607..8e42e47b7 100644 --- a/tests/unit/test_scheduler.py +++ b/tests/unit/test_scheduler.py @@ -14,7 +14,6 @@ import configparser import gc -import json import os import re import shutil @@ -4248,18 +4247,6 @@ class TestScheduler(ZuulTestCase): if len(self.builds) > 1: break - merge_count_project1 = 0 - for job in self.gearman_server.jobs_history: - if job.name == b'merger:refstate': - args = job.arguments - if isinstance(args, bytes): - args = args.decode('utf-8') - args = json.loads(args) - if args["items"][0]["project"] == "org/project1": - merge_count_project1 += 1 - self.assertEquals(merge_count_project1, 0, - "project1 shouldn't have any refstate call") - # Ensure that the status json has the ref so we can render it in the # web ui. pipeline = self.scheds.first.sched.abide.tenants[ |