From c1e09d35be24ebcead41987f2d345ccc34bcc62b Mon Sep 17 00:00:00 2001 From: Clay Gerrard Date: Tue, 8 Mar 2011 14:23:31 -0600 Subject: [PATCH] fix ring hash check fix in obj replicator tests --- test/unit/obj/test_replicator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/obj/test_replicator.py b/test/unit/obj/test_replicator.py index 36476ba213..9558a2b0d8 100644 --- a/test/unit/obj/test_replicator.py +++ b/test/unit/obj/test_replicator.py @@ -28,6 +28,7 @@ from contextlib import contextmanager from eventlet import tpool from eventlet.green import subprocess +from swift.common import utils from swift.common.utils import hash_path, mkdirs, normalize_timestamp from swift.common import ring from swift.obj import replicator as object_replicator @@ -131,6 +132,7 @@ def _create_test_ring(path): class TestObjectReplicator(unittest.TestCase): def setUp(self): + utils.HASH_PATH_SUFFIX = 'endcap' # Setup a test ring (stolen from common/test_ring.py) self.testdir = tempfile.mkdtemp() self.devices = os.path.join(self.testdir, 'node')