Merge pull request #14158 from ClickHouse/fix_flaky_test_1

Wait for async mutation in test_version_update_after_mutation
This commit is contained in:
alesapin 2020-08-27 15:59:31 +03:00 committed by GitHub
commit 6a963f58da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
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")