提交 c2cf3f81 编写于 作者: V Vitaliy Lyudvichenko 提交者: alexey-milovidov

Fix test after rebase. [#CLICKHOUSE-312]

上级 628de0a3
......@@ -84,17 +84,18 @@ class ClickHouseCluster:
if self.is_up:
return
# Kill unstopped containers from previous launch
try:
subprocess.check_call(self.base_cmd + ['kill'])
subprocess.check_call(self.base_cmd + ['down', '--volumes'])
except:
pass
if destroy_dirs and p.exists(self.instances_dir):
print "Removing instances dir", self.instances_dir
shutil.rmtree(self.instances_dir)
for instance in self.instances.values():
# Kill unstopped containers from previous launch
try:
subprocess.check_call(self.base_cmd + ['kill'])
subprocess.check_call(self.base_cmd + ['down', '--volumes'])
except:
pass
instance.create_dir(destroy_dir=destroy_dirs)
subprocess.check_call(self.base_cmd + ['up', '-d'])
......
......@@ -34,19 +34,19 @@ def ddl_check_there_are_no_dublicates(instance):
TEST_REPLICATED_ALTERS=True
cluster = ClickHouseCluster(__file__)
for i in xrange(4):
cluster.add_instance(
'ch{}'.format(i+1),
config_dir="configs",
macroses={"layer": 0, "shard": i/2 + 1, "replica": i%2 + 1},
with_zookeeper=True)
@pytest.fixture(scope="module")
def started_cluster():
try:
for i in xrange(4):
cluster.add_instance(
'ch{}'.format(i+1),
config_dir="configs",
macroses={"layer": 0, "shard": i/2 + 1, "replica": i%2 + 1},
with_zookeeper=True)
cluster.start()
# Initialize databases and service tables
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册