mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
make it possible to rerun test_recovery_time_metric multiple times
This commit is contained in:
parent
e664a14478
commit
27f4f468b9
@ -21,6 +21,7 @@ def start_cluster():
|
||||
def test_recovery_time_metric(start_cluster):
|
||||
node.query(
|
||||
"""
|
||||
DROP DATABASE IF EXISTS rdb;
|
||||
CREATE DATABASE rdb
|
||||
ENGINE = Replicated('/test/test_recovery_time_metric', 'shard1', 'replica1')
|
||||
"""
|
||||
@ -28,6 +29,7 @@ def test_recovery_time_metric(start_cluster):
|
||||
|
||||
node.query(
|
||||
"""
|
||||
DROP TABLE IF EXISTS rdb.t;
|
||||
CREATE TABLE rdb.t
|
||||
(
|
||||
`x` UInt32
|
||||
@ -51,3 +53,9 @@ def test_recovery_time_metric(start_cluster):
|
||||
).strip()
|
||||
)
|
||||
assert ret > 0
|
||||
|
||||
node.query(
|
||||
"""
|
||||
DROP DATABASE rdb
|
||||
"""
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user