Skip to content

Commit 9dcc653

Browse files
committed
small
1 parent fc86553 commit 9dcc653

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,5 @@ jobs:
6868
- name: Run Python inline script
6969
shell: pwsh
7070
run: |
71-
python -c "import MetaTrader5 as mt5; import time; import sys; print('Testing MT5 initialization...'); success = False; \
72-
for attempt in range(12): \
73-
if mt5.initialize(): \
74-
print('MT5 initialized successfully'); \
75-
mt5.shutdown(); \
76-
success = True; \
77-
break; \
78-
else: \
79-
print(f'Attempt {attempt+1}: Not ready yet, sleeping...'); \
80-
time.sleep(5); \
81-
if not success: \
82-
print('Failed to initialize MT5 after waiting.'); \
83-
sys.exit(1)"
71+
python -c "import MetaTrader5 as mt5; import time; import sys; print('Testing MT5 initialization...'); success = False;"
8472

0 commit comments

Comments
 (0)