Skip to content

Commit f4c50f1

Browse files
author
danicampora
committed
tests/wipy: Make WLAN test more stable.
1 parent ae70e98 commit f4c50f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/wipy/wlan/wlan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def wait_for_connection(wifi, timeout=10):
4040

4141
wifi = WLAN(mode=WLAN.STA)
4242
print(wifi.mode() == WLAN.STA)
43+
time.sleep(5) # this ensures a full network scan
4344
scan_r = wifi.scan()
4445
print(len(scan_r) > 3)
4546
for net in scan_r:
@@ -67,6 +68,7 @@ def wait_for_connection(wifi, timeout=10):
6768

6869
wifi.antenna(WLAN.EXT_ANT)
6970
print(wifi.antenna() == WLAN.EXT_ANT)
71+
time.sleep(2) # this ensures a full network scan
7072
scan_r = wifi.scan()
7173
print(len(scan_r) > 3)
7274
for net in scan_r:

0 commit comments

Comments
 (0)