-
-
Save bloodeagle40234/3a3f51a7b2584c6475df0bc76c6f7dad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/probe/test_db_replication.py b/test/probe/test_db_replication.py | |
index c9a683a..d04d01b 100644 | |
--- a/test/probe/test_db_replication.py | |
+++ b/test/probe/test_db_replication.py | |
@@ -20,6 +20,7 @@ from uuid import uuid4 | |
from swiftclient import client | |
+from swift.common.manager import Manager | |
from swift.common.utils import readconf, search_tree | |
from test.probe.common import ReplProbeTest | |
@@ -67,7 +68,8 @@ class TestDBReplication(ReplProbeTest): | |
devices, files = self.get_db_files('container') | |
self.assertEqual(2, len(files)) | |
- self.replicators.once() | |
+ replicators = Manager(['container-replicator']) | |
+ replicators.once() | |
# A drive is not mounted, so one copy should replicate to | |
# a handoff node | |
@@ -76,7 +78,7 @@ class TestDBReplication(ReplProbeTest): | |
# now we replicate a few times and we should stick to 3 | |
for _ in range(3): | |
- self.replicators.once() | |
+ replicators.once() | |
devices, files = self.get_db_files('container') | |
self.assertEqual(3, len(files)) | |
finally: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment