File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5757 ./testbin > output.log 2>&1 &
5858 PID=$!
5959 FOUND=false
60- for i in $(seq 1 60 ); do
60+ for i in $(seq 1 600 ); do
6161 if grep -q '\[ws\] 连接到Websocket服务器' output.log 2>/dev/null; then
6262 FOUND=true
6363 break
7474 echo "Success: Found target output"
7575 exit 0
7676 else
77- echo "Failure: Timeout after 60s without finding target output"
77+ echo "Failure: Timeout after 600s without finding target output"
7878 exit 1
7979 fi
8080
8686 $env:DEBUG_MODE = "1"
8787 $proc = Start-Process -FilePath ".\testbin.exe" -NoNewWindow -PassThru -RedirectStandardOutput "$logFile" -RedirectStandardError (Join-Path $PWD "stderr.log")
8888 $found = $false
89- for ($i = 0; $i -lt 60 ; $i++) {
89+ for ($i = 0; $i -lt 600 ; $i++) {
9090 Start-Sleep -Seconds 1
9191 try {
9292 $content = ""
@@ -125,6 +125,6 @@ jobs:
125125 Write-Host "Success: Found target output"
126126 exit 0
127127 } else {
128- Write-Host "Failure: Timeout after 60s without finding target output"
128+ Write-Host "Failure: Timeout after 600s without finding target output"
129129 exit 1
130130 }
You can’t perform that action at this time.
0 commit comments