提交 1f22ec5f 编写于 作者: A alesapin

Wait for async mutation in test

上级 67f16d5a
import pytest
import time
from helpers.cluster import ClickHouseCluster
from helpers.test_tools import assert_eq_with_retry
......@@ -71,4 +70,7 @@ def test_upgrade_while_mutation(start_cluster):
node3.restart_with_latest_version()
# will delete nothing, but previous async mutation will finish with this query
node3.query("ALTER TABLE mt1 DELETE WHERE id > 100000", settings={"mutations_sync": "2"})
assert_eq_with_retry(node3, "SELECT COUNT() from mt1", "50000\n")
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册