mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix test_truncate_database
This commit is contained in:
parent
eb42cddde4
commit
2a6ce2df0f
@ -50,6 +50,10 @@ def test_truncate_database_replicated(start_cluster):
|
||||
node1.query(
|
||||
"INSERT INTO test.test_table SELECT number, toString(number) FROM numbers(100)"
|
||||
)
|
||||
|
||||
for node in [node2, node3]:
|
||||
node.query("SYSTEM SYNC REPLICA test.test_table LIGHTWEIGHT")
|
||||
|
||||
assert node2.query("SELECT min(id) FROM test.test_table") == "0\n"
|
||||
assert node2.query("SELECT id FROM test.test_table ORDER BY id LIMIT 1") == "0\n"
|
||||
assert node3.query("SHOW DATABASES LIKE 'test'") == "test\n"
|
||||
|
Loading…
Reference in New Issue
Block a user