Fix test_max_rows_to_read_leaf_with_view flakiness (due to prefer_localhost_replica)

CI: https://s3.amazonaws.com/clickhouse-test-reports/0/186bd9c85974f641a70581a704a43ebdb6d302a8/integration_tests__asan__analyzer__[4_6]/integration_run_parallel1_0.log
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2023-10-08 22:28:19 +02:00
parent 88d28c1135
commit 9f82eef1b6

View File

@ -55,7 +55,7 @@ def test_max_rows_to_read_leaf_via_view(started_cluster):
"""
assert (
node1.query(
"SELECT count() from test_view SETTINGS max_rows_to_read_leaf=200"
"SELECT count() from test_view SETTINGS max_rows_to_read_leaf=200, prefer_localhost_replica=0"
).rstrip()
== "400"
)
@ -66,7 +66,9 @@ def test_max_rows_to_read_leaf_via_view(started_cluster):
node2.query(
"INSERT INTO local_table (id) select * from system.numbers limit 10"
)
node2.query("SELECT count() from test_view SETTINGS max_rows_to_read_leaf=200")
node2.query(
"SELECT count() from test_view SETTINGS max_rows_to_read_leaf=200, prefer_localhost_replica=0"
)
if __name__ == "__main__":