From 6b62341718142ed2357f0fbbcac81fb6c98641bb Mon Sep 17 00:00:00 2001 From: mehul gautam Date: Wed, 17 Jul 2024 04:39:22 +0000 Subject: [PATCH] fixed Signed-off-by: mehul gautam --- examples/hotrod/docker-compose.yml | 2 +- scripts/hotrod-integration-test.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/hotrod/docker-compose.yml b/examples/hotrod/docker-compose.yml index d416d177363..048de7de59e 100644 --- a/examples/hotrod/docker-compose.yml +++ b/examples/hotrod/docker-compose.yml @@ -1,6 +1,6 @@ version: '3.7' # To run a specific version of Jaeger, use environment variable, e.g.: -# JAEGER_VERSION=1.52 docker compose up +# JAEGER_VERSION=1.52 docker compose up services: jaeger: diff --git a/scripts/hotrod-integration-test.sh b/scripts/hotrod-integration-test.sh index bffb911d6ee..f6085140b69 100755 --- a/scripts/hotrod-integration-test.sh +++ b/scripts/hotrod-integration-test.sh @@ -47,8 +47,15 @@ fi response=$(curl -i -X POST "http://localhost:8080/dispatch?customer=123") TRACE_ID=$(echo "$response" | grep -Fi "Traceresponse" | awk '{print $2}' | cut -d '-' -f 2) +if [ -n "$TRACE_ID" ]; then + echo "TRACE_ID is not empty: $TRACE_ID" +else + echo "TRACE_ID is empty" + exit 1 +fi + JAEGER_QUERY_URL="http://localhost:16686" -EXPECTED_SPANS=10 +EXPECTED_SPANS=35 MAX_RETRIES=30 SLEEP_INTERVAL=10