summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib
diff options
context:
space:
mode:
authorJason Chan <jason.chan@mongodb.com>2021-11-24 00:32:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-24 00:56:15 +0000
commitd41f759f4742c6c781202a27b4b03a6be6d4f73a (patch)
treeb427f67e656ebfdb0c97e1afd6aa700687d8226c /buildscripts/resmokelib
parent0b5f8fbf748fa7c8da75bd64ac9ca4ed322de321 (diff)
downloadmongo-d41f759f4742c6c781202a27b4b03a6be6d4f73a.tar.gz
SERVER-61718 Have ClusterToClusterFixture make a new fixture only in the constructor
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r--buildscripts/resmokelib/testing/fixtures/cluster_to_cluster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/cluster_to_cluster.py b/buildscripts/resmokelib/testing/fixtures/cluster_to_cluster.py
index 6be7d5278bd..040dede1eaa 100644
--- a/buildscripts/resmokelib/testing/fixtures/cluster_to_cluster.py
+++ b/buildscripts/resmokelib/testing/fixtures/cluster_to_cluster.py
@@ -60,14 +60,14 @@ class ClusterToClusterFixture(interface.MultiClusterFixture): # pylint: disable
# The cluster that starts off with the data.
self.source_cluster_index = 0
- def setup(self):
- """Set up the cluster to cluster fixture according to the options provided."""
-
for cluster_options in self.both_cluster_options:
cluster = self.fixturelib.make_fixture(cluster_options["class"], self.logger,
self.job_num, **cluster_options["settings"])
self.clusters.append(cluster)
+ def setup(self):
+ """Set up the cluster to cluster fixture according to the options provided."""
+
for i, cluster in enumerate(self.clusters):
self.logger.info(f"Setting up cluster {i}.")
cluster.setup()