Skip to content

Commit 0124d21

Browse files
committed
Better
1 parent 861bdb5 commit 0124d21

File tree

1 file changed

+2
-4
lines changed
  • tests/integration/test_replicated_table_attach

1 file changed

+2
-4
lines changed

tests/integration/test_replicated_table_attach/test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def start_clean_clickhouse():
4141

4242
def test_startup_with_small_bg_pool(started_cluster):
4343
start_clean_clickhouse()
44+
node.query("DROP TABLE IF EXISTS replicated_table SYNC")
4445
node.query(
4546
"CREATE TABLE replicated_table (k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/replicated_table', 'r1') ORDER BY k"
4647
)
@@ -54,11 +55,10 @@ def assert_values():
5455
node.restart_clickhouse(stop_start_wait_sec=10)
5556
assert_values()
5657

57-
node.query("DROP TABLE replicated_table SYNC")
58-
5958

6059
def test_startup_with_small_bg_pool_partitioned(started_cluster):
6160
start_clean_clickhouse()
61+
node.query("DROP TABLE IF EXISTS replicated_table_partitioned SYNC")
6262
node.query(
6363
"CREATE TABLE replicated_table_partitioned (k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/replicated_table_partitioned', 'r1') ORDER BY k"
6464
)
@@ -81,5 +81,3 @@ def assert_values():
8181

8282
# check that we activate it in the end
8383
node.query_with_retry("INSERT INTO replicated_table_partitioned VALUES(20, 30)")
84-
85-
node.query("DROP TABLE replicated_table_partitioned SYNC")

0 commit comments

Comments
 (0)