mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge pull request #65766 from ClickHouse/fix-test_alter_attach
Fix flaky `test_replicated_database::test_alter_attach`
This commit is contained in:
commit
cb0cd60e62
@ -337,8 +337,12 @@ def test_alter_attach(started_cluster, attachable_part, engine):
|
||||
main_node.query(f"SELECT CounterID FROM {database}.alter_attach_test")
|
||||
== "123\n"
|
||||
)
|
||||
|
||||
# On the other node, data is replicated only if using a Replicated table engine
|
||||
if engine == "ReplicatedMergeTree":
|
||||
dummy_node.query(
|
||||
f"SYSTEM SYNC REPLICA {database}.alter_attach_test LIGHTWEIGHT"
|
||||
)
|
||||
assert (
|
||||
dummy_node.query(f"SELECT CounterID FROM {database}.alter_attach_test")
|
||||
== "123\n"
|
||||
|
Loading…
Reference in New Issue
Block a user