mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Automatic style fix
This commit is contained in:
parent
7fc8ee726e
commit
a6d4db342b
@ -2,7 +2,9 @@ import pytest
|
||||
from helpers.cluster import ClickHouseCluster
|
||||
|
||||
cluster = ClickHouseCluster(__file__)
|
||||
node = cluster.add_instance("node", main_configs=["configs/config.xml"], with_zookeeper=True)
|
||||
node = cluster.add_instance(
|
||||
"node", main_configs=["configs/config.xml"], with_zookeeper=True
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
@ -15,12 +17,10 @@ def start_cluster():
|
||||
|
||||
|
||||
def test_recovery_time_metric(start_cluster):
|
||||
node.query("CREATE DATABASE rdb ENGINE = Replicated('/test/test_recovery_time_metric', 'shard1', 'replica1');")
|
||||
node.query(
|
||||
"CREATE DATABASE rdb ENGINE = Replicated('/test/test_recovery_time_metric', 'shard1', 'replica1');"
|
||||
)
|
||||
node.query("CREATE TABLE rdb.t (x UInt32) ENGINE = MergeTree ORDER BY x;")
|
||||
node.exec_in_container(["bash", "-c", "rm /var/lib/clickhouse/metadata/rdb/t.sql"])
|
||||
node.restart_clickhouse()
|
||||
assert (
|
||||
node.query("SELECT any(recovery_time) FROM system.clusters;")
|
||||
!= "0\n"
|
||||
)
|
||||
|
||||
assert node.query("SELECT any(recovery_time) FROM system.clusters;") != "0\n"
|
||||
|
Loading…
Reference in New Issue
Block a user