Skip to content

Commit 135ac80

Browse files
Copilotsofthack007
andcommitted
Fix scenario step key: use 'wait' instead of 'sleep'
- Change 'sleep' to 'wait' in boot-check.yaml - Change 'sleep' to 'wait' in boot-full.yaml - Wokwi CLI expects 'wait' as the valid scenario step key - Fixes "Invalid scenario step key: sleep" error Co-authored-by: softhack007 <[email protected]>
1 parent fb80167 commit 135ac80

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/wokwi/scenarios/boot-check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ timeout: 15000 # 15 seconds - increased to allow for slower CI environments
1010
# Simple validation: just wait and ensure the simulator doesn't crash
1111
steps:
1212
- name: "Wait for initial boot"
13-
sleep: 6000 # 6 seconds
13+
wait: 6000 # 6 seconds
1414

1515
- name: "Verify simulator is still running"
16-
sleep: 6000 # 6 seconds
16+
wait: 6000 # 6 seconds
1717

1818
- name: "Final stability check"
19-
sleep: 3000 # 3 seconds
19+
wait: 3000 # 3 seconds
2020

2121
# If we get here without the simulator crashing, boot is successful

test/wokwi/scenarios/boot-full.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ timeout: 30000 # 30 seconds
1010
# Extended validation with more time for full system initialization
1111
steps:
1212
- name: "Initial boot phase"
13-
sleep: 8000 # 8 seconds - ESP32 basic initialization
13+
wait: 8000 # 8 seconds - ESP32 basic initialization
1414

1515
- name: "WiFi AP initialization"
16-
sleep: 10000 # 10 seconds - WiFi access point setup
16+
wait: 10000 # 10 seconds - WiFi access point setup
1717

1818
- name: "HTTP server startup"
19-
sleep: 8000 # 8 seconds - Web server initialization
19+
wait: 8000 # 8 seconds - Web server initialization
2020

2121
- name: "Final stability verification"
22-
sleep: 4000 # 4 seconds - Ensure everything is stable
22+
wait: 4000 # 4 seconds - Ensure everything is stable
2323

2424
# If we get here, WLED has fully initialized with WiFi AP and HTTP server

0 commit comments

Comments
 (0)