From 50e4dc7313ce3fbb83a20805afadf7c300b76d3d Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Mon, 4 Aug 2025 09:56:50 -0400 Subject: [PATCH] Renames server timeout to max attempts Updates the `serverTimeoutSeconds` parameter to `serverMaxAttempts` to better reflect its functionality, which is the number of attempts the system will make to connect to the server. --- temp/playwright-test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/temp/playwright-test.yml b/temp/playwright-test.yml index 474a0bd75..2d6ecde80 100644 --- a/temp/playwright-test.yml +++ b/temp/playwright-test.yml @@ -45,7 +45,7 @@ parameters: - name: readinessEndpoint type: string default: '/healthcheck' - - name: serverTimeoutSeconds + - name: serverMaxAttempts type: number default: 60 @@ -205,7 +205,7 @@ jobs: --env TOTAL_SHARDS="$TOTAL_SHARDS" \ --env FILTER="$FILTER" \ --env APPLICATION_TYPE="$APPLICATION_TYPE" \ - --env SERVER_TIMEOUT="${{ parameters.serverTimeoutSeconds }}" \ + --env SERVER_MAX_ATTEMPTS="${{ parameters.serverMaxAttempts }}" \ --env ASPNETCORE_URLS="https://localhost:$port" \ --env ENV_FILE="$ENV_FILE" \ --env-file "${{ parameters.envFileName }}" \ @@ -215,12 +215,12 @@ jobs: echo "Application Type: $APPLICATION_TYPE" echo "Target URL: $TARGET_URL" echo "Readiness Check URL: $READINESS_URL" - echo "Server Timeout: $SERVER_TIMEOUT seconds" - + echo "Server Max Attempts: $SERVER_MAX_ATTEMPTS seconds" + # Function to wait for server readiness wait_for_server() { local url=$1 - local max_attempts=$SERVER_TIMEOUT + local max_attempts=$SERVER_MAX_ATTEMPTS local attempt=1 echo "Waiting for server at: $url"