Fix flaky test_replicated_database::test_alter_attach

This commit is contained in:
Antonio Andelic 2024-06-27 14:04:44 +02:00
parent 50510f9c43
commit 86c3036bfb

View File

@ -337,8 +337,10 @@ 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"