Skip to content

Commit 4bdf2a2

Browse files
projectgusdpgeorge
authored andcommitted
tests/multi_bluetooth: Extend the deep sleep test timeout.
As per comment, if a boot.py is present that connects to Wi-Fi then waking can take a little longer. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
1 parent ff6491d commit 4bdf2a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/multi_bluetooth/stress_deepsleep_reconnect.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
from micropython import const
66
import time, machine, bluetooth
77

8-
TIMEOUT_MS = 4000
8+
# Note: This value can be much lower most of the time, but an ESP32 with a boot.py
9+
# that connects to Wi-Fi may take an extra 5 seconds after reboot.
10+
TIMEOUT_MS = 8000
911

1012
_IRQ_CENTRAL_CONNECT = const(1)
1113
_IRQ_CENTRAL_DISCONNECT = const(2)

0 commit comments

Comments
 (0)