Skip to content

Commit 703f510

Browse files
committed
tests: fix flakiness of test_async_load_databases due to pushing to MV reorder
Refs: #88339 (comment)
1 parent 764bb34 commit 703f510

File tree

1 file changed

+4
-1
lines changed
  • tests/integration/test_async_load_databases

1 file changed

+4
-1
lines changed

tests/integration/test_async_load_databases/test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,10 @@ def test_materialized_views_cascaded_multiple(started_cluster):
335335
query("insert into to_join values(42, 4200)")
336336

337337
node1.restart_clickhouse()
338-
query("insert into test_mv.t values(42)")
338+
query("insert into test_mv.t values(42)", settings={
339+
# Make sure that pushing to MVs are not reordered
340+
"max_threads": 1
341+
})
339342
assert query("select * from test_mv.a Format CSV") == "42\n"
340343
assert query("select * from test_mv.x Format CSV") == '"42"\n'
341344
assert query("select * from test_mv.z Format CSV") == "42,2\n"

0 commit comments

Comments
 (0)