fix ring hash check fix in obj replicator tests.

This commit is contained in:
Clay Gerrard 2011-03-08 22:52:23 +00:00 committed by Tarmac
commit 00d2477e9f

View File

@ -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')