Update cluster.py

This commit is contained in:
alesapin 2021-05-18 17:25:46 +03:00 committed by GitHub
parent e71387f509
commit 974f362e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,7 @@ class ClickHouseCluster:
run_and_check(self.base_cmd + ["up", "--force-recreate", "--no-deps", "-d", node.name])
node.ip_address = self.get_instance_ip(node.name)
node.client = Client(node.ip_address, command=self.client_bin_path)
node.wait_for_start(timeout=20.0, connection_timeout=600.0) # seconds
node.wait_for_start(start_timeout=20.0, connection_timeout=600.0) # seconds
return node
def get_instance_ip(self, instance_name):