Skip to content

Commit cfdb5ed

Browse files
committed
fix: remove redundant delay steps from various scenarios
As of wokwi-cli 0.18.0, they are no longer needed, and sometimes even cause the test scenario to fail.
1 parent fdca8d0 commit cfdb5ed

File tree

11 files changed

+5
-44
lines changed

11 files changed

+5
-44
lines changed

board-ssd1306/oled-esp32/ssd1306.test.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@ author: 'Uri Shaked'
44

55
steps:
66
- wait-serial: 'Display initialized'
7-
- delay: 100ms
87

98
- wait-serial: 'Counter: 0'
109
- take-screenshot:
1110
part-id: 'oled1'
1211
compare-with: 'screenshots/counter-0.png'
13-
- delay: 1000ms
1412

1513
- wait-serial: 'Counter: 1'
1614
- take-screenshot:
1715
part-id: 'oled1'
1816
compare-with: 'screenshots/counter-1.png'
19-
- delay: 1000ms
2017

2118
- wait-serial: 'Counter: 2'
2219
- take-screenshot:

wokwi-analog-joystick/joystick-uno/joystick.test.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@ steps:
88
part-id: joystick1
99
control: x
1010
value: -1
11-
- delay: 100ms
1211
- wait-serial: 'Horizontal: 0'
1312
- set-control:
1413
part-id: joystick1
1514
control: y
1615
value: 1
17-
- delay: 100ms
1816
- wait-serial: 'Vertical: 1023'
1917
- set-control:
2018
part-id: joystick1
2119
control: x
2220
value: 0.5
23-
- delay: 100ms
2421
- wait-serial: 'Horizontal: 768'
2522
- set-control:
2623
part-id: joystick1

wokwi-dht22/dht22-esp32/dht22.test.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ steps:
66
# Make sure we're running on the ESP32
77
- wait-serial: 'ets Jul 29 2019 12:21:46'
88
- wait-serial: 'DHT22 test!'
9-
# Wait for first reading
10-
- delay: 500ms
11-
# Check exact temperature and humidity values
9+
# Wait for first reading and check exact temperature and humidity values
1210
- wait-serial: 'Humidity: 45.80% Temperature: 23.50°C'
1311
# Wait for second reading to confirm consistency
14-
- delay: 500ms
1512
- wait-serial: 'Humidity: 45.80% Temperature: 23.50°C'
1613
# Set new values
1714
- set-control:
@@ -22,6 +19,5 @@ steps:
2219
part-id: dht
2320
control: humidity
2421
value: 66.9
25-
- delay: 500ms
2622
# Check new values
2723
- wait-serial: 'Humidity: 66.90% Temperature: 21.50°C'

wokwi-dht22/dht22-pico/dht22.test.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ author: 'Uri Shaked'
44

55
steps:
66
- wait-serial: 'DHT22 test (Pi Pico)'
7-
# Wait for first reading
8-
- delay: 500ms
9-
# Check exact temperature and humidity values
7+
# Wait for first reading and check exact temperature and humidity values
108
- wait-serial: 'Humidity: 45.80% Temperature: 23.50°C'
119
# Wait for second reading to confirm consistency
12-
- delay: 500ms
1310
- wait-serial: 'Humidity: 45.80% Temperature: 23.50°C'
1411
# Set new values
1512
- set-control:
@@ -20,6 +17,5 @@ steps:
2017
part-id: dht
2118
control: humidity
2219
value: 66.9
23-
- delay: 500ms
2420
# Check new values
2521
- wait-serial: 'Humidity: 66.90% Temperature: 21.50°C'

wokwi-dht22/dht22-stm32/dht22.test.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ author: 'Uri Shaked'
55
steps:
66
# Wait for initialization
77
- wait-serial: 'DHT22 test (STM32)'
8-
# Wait for first reading
9-
- delay: 500ms
10-
# Check exact temperature and humidity values
8+
# Wait for first reading and check exact temperature and humidity values
119
- wait-serial: 'Humidity: 45.80% Temperature: 23.50°C'
1210
# Wait for second reading to confirm consistency
13-
- delay: 500ms
1411
- wait-serial: 'Humidity: 45.80% Temperature: 23.50°C'
1512
# Set new values
1613
- set-control:
@@ -21,6 +18,5 @@ steps:
2118
part-id: dht
2219
control: humidity
2320
value: 66.9
24-
- delay: 500ms
2521
# Check new values
2622
- wait-serial: 'Humidity: 66.90% Temperature: 21.50°C'

wokwi-dht22/dht22-uno/dht22.test.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ author: 'Uri Shaked'
44

55
steps:
66
- wait-serial: 'DHT22 test!'
7-
# Wait for first reading
8-
- delay: 500ms
9-
# Check exact temperature and humidity values
7+
# Wait for first reading and check exact temperature and humidity values
108
- wait-serial: 'Humidity: 45.80% Temperature: 23.50°C'
119
# Wait for second reading to confirm consistency
12-
- delay: 500ms
1310
- wait-serial: 'Humidity: 45.80% Temperature: 23.50°C'
1411
# Set new values
1512
- set-control:
@@ -20,6 +17,5 @@ steps:
2017
part-id: dht
2118
control: humidity
2219
value: 66.9
23-
- delay: 500ms
2420
# Check new values
2521
- wait-serial: 'Humidity: 66.90% Temperature: 21.50°C'

wokwi-ili9341/lcd-uno/ili9341.test.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ version: 1
33
author: 'Uri Shaked'
44

55
steps:
6-
- delay: 100ms
76
- wait-serial: 'ILI9341 Test!'
8-
- delay: 100ms
97
- wait-serial: 'Display initialized'
10-
- delay: 100ms
118
- wait-serial: 'Counter: 0'
129
- take-screenshot:
1310
part-id: 'lcd1'
1411
compare-with: 'screenshots/count-0.png'
15-
- delay: 1000ms
1612
- wait-serial: 'Counter: 1'
1713
- take-screenshot:
1814
part-id: 'lcd1'

wokwi-lcd1602/lcd-uno/lcd1602.test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ version: 1
33
author: 'Uri Shaked'
44

55
steps:
6-
- delay: 100ms
76
- wait-serial: 'Display initialized'
87
- take-screenshot:
98
part-id: 'lcd'

wokwi-photoresistor-sensor/photoresistor-uno/photoresistor.test.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,21 @@ author: 'Wokwi'
44

55
steps:
66
- wait-serial: 'Photoresistor Sensor Test'
7-
# Wait for first reading
8-
- delay: 500ms
9-
# Check initial light value (should be around 500 lux)
7+
# Wait for first reading and check initial light value (should be around 500 lux)
108
- wait-serial: 'Sensor value: 250'
119
# Wait for second reading to confirm consistency
12-
- delay: 500ms
1310
- wait-serial: 'Sensor value: 250'
1411
# Set new lux value (bright light)
1512
- set-control:
1613
part-id: photoresistor
1714
control: lux
1815
value: 1000
19-
- delay: 500ms
2016
# Check new values (analog value should be lower)
2117
- wait-serial: 'Sensor value: 169'
2218
# Set low light condition
2319
- set-control:
2420
part-id: photoresistor
2521
control: lux
2622
value: 100
27-
- delay: 500ms
2823
# Check low light values (analog value should be higher)
2924
- wait-serial: 'Sensor value: 511'

wokwi-slide-potentiometer/pot-esp32/slide-potentiometer.test.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,19 @@ version: 1
33
author: 'Uri Shaked'
44

55
steps:
6-
- delay: 100ms
76
- wait-serial: 'Potentiometer value: 2048'
87
- set-control:
98
part-id: pot1
109
control: position
1110
value: 1
12-
- delay: 100ms
1311
- wait-serial: 'Potentiometer value: 4095'
1412
- set-control:
1513
part-id: pot1
1614
control: position
1715
value: 0
18-
- delay: 100ms
1916
- wait-serial: 'Potentiometer value: 0'
2017
- set-control:
2118
part-id: pot1
2219
control: position
2320
value: 0.5
24-
- delay: 100ms
2521
- wait-serial: 'Potentiometer value: 2048'

0 commit comments

Comments
 (0)