Skip to content

Commit dac342b

Browse files
committed
Stabilize flapping test for autodiscovery macros
1 parent 92b03f0 commit dac342b

File tree

1 file changed

+7
-0
lines changed
  • tests/integration/test_cluster_discovery

1 file changed

+7
-0
lines changed

tests/integration/test_cluster_discovery/test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ def test_cluster_discovery_startup_and_stop(start_cluster):
125125

126126

127127
def test_cluster_discovery_macros(start_cluster):
128+
# wait for all nodes to be started
129+
check_nodes_count = functools.partial(
130+
check_on_cluster, what="count()", msg="Wrong nodes count in cluster"
131+
)
132+
total_nodes = len(nodes) - 1
133+
check_nodes_count([nodes["node_observer"]], total_nodes)
134+
128135
# check macros
129136
res = nodes["node_observer"].query(
130137
"SELECT sum(number) FROM clusterAllReplicas('{autocluster}', system.numbers) WHERE number=1"

0 commit comments

Comments
 (0)