Skip to content

Instantly share code, notes, and snippets.

@bloodeagle40234
Created April 7, 2017 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bloodeagle40234/3a3f51a7b2584c6475df0bc76c6f7dad to your computer and use it in GitHub Desktop.
Save bloodeagle40234/3a3f51a7b2584c6475df0bc76c6f7dad to your computer and use it in GitHub Desktop.
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