tests/wipy: Make WLAN test more stable.

This commit is contained in:
danicampora 2015-10-19 20:09:25 +02:00
parent ae70e98ed4
commit f4c50f1cfc
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ print(wifi.antenna() == WLAN.INT_ANT)
wifi = WLAN(mode=WLAN.STA)
print(wifi.mode() == WLAN.STA)
time.sleep(5) # this ensures a full network scan
scan_r = wifi.scan()
print(len(scan_r) > 3)
for net in scan_r:
@ -67,6 +68,7 @@ print(wifi.antenna() == WLAN.INT_ANT)
wifi.antenna(WLAN.EXT_ANT)
print(wifi.antenna() == WLAN.EXT_ANT)
time.sleep(2) # this ensures a full network scan
scan_r = wifi.scan()
print(len(scan_r) > 3)
for net in scan_r: