Skip to content

Commit b113ae5

Browse files
committed
timeout
1 parent 1cf8486 commit b113ae5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/test-metatrader5-integration.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: |
2626
# Start installer with /auto and /portable, with timeout protection
2727
$process = Start-Process -FilePath ".\mt5setup.exe" -ArgumentList "/auto", "/portable" -PassThru
28-
$process.WaitForExit(300) # 300 seconds = 5 minutes
28+
$process.WaitForExit(30000) # 300 seconds = 5 minutes
2929
if (-not $process.HasExited) {
3030
Write-Host "MT5 installer stuck, killing..."
3131
Stop-Process -Id $process.Id -Force
@@ -60,17 +60,17 @@ jobs:
6060
- name: Run Python inline script
6161
run: |
6262
python -c "
63-
import MetaTrader5 as mt5
64-
import time
63+
import MetaTrader5 as mt5
64+
import time
6565

66-
print('Testing MT5 initialization...')
67-
time.sleep(5) # Extra sleep to ensure MT5 ready
66+
print('Testing MT5 initialization...')
67+
time.sleep(5) # Extra sleep to ensure MT5 ready
6868

69-
if not mt5.initialize():
70-
print('Failed to initialize:', mt5.last_error())
71-
exit(1)
72-
else:
73-
print('MT5 initialized successfully')
74-
mt5.shutdown()
75-
"
69+
if not mt5.initialize():
70+
print('Failed to initialize:', mt5.last_error())
71+
exit(1)
72+
else:
73+
print('MT5 initialized successfully')
74+
mt5.shutdown()
75+
"
7676
shell: pwsh

0 commit comments

Comments
 (0)