Skip to content

Commit aab5388

Browse files
committed
App Tests: Make statistics test check both server replicas
1 parent c5e4f8f commit aab5388

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app-tests/run.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ function test_data_publish {
116116
function test_statistics {
117117
echo "- Testing statistics feature"
118118
# Make sure 2 servers & 2 clients (repeat few times cause different workers might response)
119-
for _ in {1..10}; do
120-
curl -s 'http://localhost:7002/stats' --header "Authorization: Bearer $OPAL_DATA_SOURCE_TOKEN" | grep '"client_count":2,"server_count":2'
119+
for port in {7002..7003}; do
120+
for _ in {1..8}; do
121+
curl -s "http://localhost:${port}/stats" --header "Authorization: Bearer $OPAL_DATA_SOURCE_TOKEN" | grep '"client_count":2,"server_count":2'
122+
done
121123
done
122124
}
123125

0 commit comments

Comments
 (0)