Skip to content

Commit 125202b

Browse files
authored
Merge pull request ClickHouse#79940 from ClickHouse/addrep
Fix flaky test_refreshable_mv/test.py::test_adding_replica
2 parents be081ad + f3e0ab3 commit 125202b

File tree

1 file changed

+1
-6
lines changed
  • tests/integration/test_refreshable_mv

1 file changed

+1
-6
lines changed

tests/integration/test_refreshable_mv/test.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,7 @@ def test_adding_replica(started_cluster, cleanup):
445445
assert node2.query("select * from re.a order by all") == "0\n10\n"
446446

447447
node1.query("system stop view re.a")
448-
r = node2.query(
449-
"system wait view re.a;"
450-
"system refresh view re.a;"
451-
"system wait view re.a;"
452-
"select last_refresh_replica from system.view_refreshes")
453-
assert r == "2\n"
448+
node2.query_with_retry("select last_refresh_replica from system.view_refreshes", check_callback=lambda x: x == "2\n", sleep_time=1, retry_count=20)
454449

455450
def test_replicated_db_startup_race(started_cluster, cleanup):
456451
for node in nodes:

0 commit comments

Comments
 (0)