Skip to content

Commit

Permalink
App Tests: Make statistics test check both server replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
roekatz committed Nov 11, 2024
1 parent c5e4f8f commit aab5388
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app-tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ function test_data_publish {
function test_statistics {
echo "- Testing statistics feature"
# Make sure 2 servers & 2 clients (repeat few times cause different workers might response)
for _ in {1..10}; do
curl -s 'http://localhost:7002/stats' --header "Authorization: Bearer $OPAL_DATA_SOURCE_TOKEN" | grep '"client_count":2,"server_count":2'
for port in {7002..7003}; do
for _ in {1..8}; do
curl -s "http://localhost:${port}/stats" --header "Authorization: Bearer $OPAL_DATA_SOURCE_TOKEN" | grep '"client_count":2,"server_count":2'
done
done
}

Expand Down

0 comments on commit aab5388

Please sign in to comment.