Skip to content

Commit a4f1dc0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent baf0882 commit a4f1dc0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

DocSum/tests/test_compose_tgi_on_gaudi.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ function validate_service() {
9090

9191
local MAX_RETRIES=${13:-3} # 默认重试3次
9292
local RETRY_DELAY=${14:-2} # 默认重试间隔2秒
93-
93+
9494
local retry_count=0
9595
local success=false
96-
96+
9797
while [ $retry_count -lt $MAX_RETRIES ] && [ "$success" = false ]; do
9898
retry_count=$((retry_count + 1))
99-
99+
100100
echo "[ $SERVICE_NAME ] 尝试第 $retry_count/$MAX_RETRIES 次..."
101101
if [[ $VALIDATE_TYPE == *"json"* ]]; then
102102
HTTP_RESPONSE=$(curl --silent --write-out "HTTPSTATUS:%{http_code}" -X POST -d "$INPUT_DATA" -H 'Content-Type: application/json' "$URL")

0 commit comments

Comments
 (0)