Limit scheduler count to 1 for other github related tests

Those tests are also using the fake github implementation which means
that every scheduler gets a different fake github instance. Thus,
assertions might fail depending on which scheduler did the interaction
with Github.

Change-Id: I4234a58fe15ce4e1cfbeb935fd18c635db0d8a9b
This commit is contained in:
Felix Edel 2021-11-26 08:47:39 +01:00 committed by James E. Blair
parent e009ea443a
commit 010167a792
3 changed files with 17 additions and 0 deletions

View File

@ -20,6 +20,12 @@ class TestGerritAndGithub(ZuulTestCase):
config_file = 'zuul-connections-gerrit-and-github.conf'
tenant_config_file = 'config/multi-driver/main.yaml'
# Those tests are also using the fake github implementation which
# means that every scheduler gets a different fake github instance.
# Thus, assertions might fail depending on which scheduler did the
# interaction with Github.
scheduler_count = 1
def test_multiple_project_gerrit_and_github(self):
self.executor_server.hold_jobs_in_build = True

View File

@ -973,6 +973,12 @@ class TestGithubToPagureCRD(ZuulTestCase):
config_file = 'zuul-crd-pagure.conf'
tenant_config_file = 'config/cross-source-pagure/github.yaml'
# Those tests are also using the fake github implementation which
# means that every scheduler gets a different fake github instance.
# Thus, assertions might fail depending on which scheduler did the
# interaction with Github.
scheduler_count = 1
def test_crd_gate(self):
"Test cross-repo dependencies"
A = self.fake_github.openFakePullRequest('github/project1', 'master',

View File

@ -3267,6 +3267,11 @@ class TestJobContamination(AnsibleZuulTestCase):
config_file = 'zuul-connections-gerrit-and-github.conf'
tenant_config_file = 'config/zuul-job-contamination/main.yaml'
# Those tests are also using the fake github implementation which
# means that every scheduler gets a different fake github instance.
# Thus, assertions might fail depending on which scheduler did the
# interaction with Github.
scheduler_count = 1
def test_job_contamination_playbooks(self):
conf = textwrap.dedent(