Cover nearest_hostname in test_insert_distributed_load_balancing

This commit is contained in:
Azat Khuzhin 2020-05-14 01:50:56 +03:00
parent cdf3845e43
commit de1d529e86

View File

@ -51,6 +51,11 @@ def test_prefer_localhost_replica_1_load_balancing_in_order():
assert int(n1.query('SELECT count() FROM data')) == 10
assert int(n2.query('SELECT count() FROM data')) == 0
def test_prefer_localhost_replica_0_load_balancing_nearest_hostname():
insert_data(load_balancing='nearest_hostname', prefer_localhost_replica=0)
assert int(n1.query('SELECT count() FROM data')) == 10
assert int(n2.query('SELECT count() FROM data')) == 0
def test_prefer_localhost_replica_0_load_balancing_in_order():
insert_data(load_balancing='in_order', prefer_localhost_replica=0)
assert int(n1.query('SELECT count() FROM data')) == 0