mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Fix test
This commit is contained in:
parent
a471ee16e1
commit
861bdb51f8
@ -27,7 +27,20 @@ def started_cluster():
|
||||
cluster.shutdown()
|
||||
|
||||
|
||||
def start_clean_clickhouse():
|
||||
# remove fault injection if present
|
||||
if "fault_injection.xml" in node.exec_in_container(
|
||||
["bash", "-c", "ls /etc/clickhouse-server/config.d"]
|
||||
):
|
||||
print("Removing fault injection")
|
||||
node.exec_in_container(
|
||||
["bash", "-c", "rm /etc/clickhouse-server/config.d/fault_injection.xml"]
|
||||
)
|
||||
node.restart_clickhouse()
|
||||
|
||||
|
||||
def test_startup_with_small_bg_pool(started_cluster):
|
||||
start_clean_clickhouse()
|
||||
node.query(
|
||||
"CREATE TABLE replicated_table (k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/replicated_table', 'r1') ORDER BY k"
|
||||
)
|
||||
@ -45,6 +58,7 @@ def test_startup_with_small_bg_pool(started_cluster):
|
||||
|
||||
|
||||
def test_startup_with_small_bg_pool_partitioned(started_cluster):
|
||||
start_clean_clickhouse()
|
||||
node.query(
|
||||
"CREATE TABLE replicated_table_partitioned (k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/replicated_table_partitioned', 'r1') ORDER BY k"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user