diff options
author | danicampora <daniel@wipy.io> | 2015-10-19 20:09:25 +0200 |
---|---|---|
committer | danicampora <daniel@wipy.io> | 2015-10-19 21:17:15 +0200 |
commit | f4c50f1cfc766974374a8e58bd98e50bef8df3ba (patch) | |
tree | 35bec4f94544ddd532e43c04abfb1edd2c5fdd56 /tests/wipy/wlan | |
parent | ae70e98ed4cae8bc6c919abd0393e16980616889 (diff) | |
download | micropython-f4c50f1cfc766974374a8e58bd98e50bef8df3ba.tar.gz micropython-f4c50f1cfc766974374a8e58bd98e50bef8df3ba.zip |
tests/wipy: Make WLAN test more stable.
Diffstat (limited to 'tests/wipy/wlan')
-rw-r--r-- | tests/wipy/wlan/wlan.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/wipy/wlan/wlan.py b/tests/wipy/wlan/wlan.py index 9e18f0c4c2..72a20d4fa8 100644 --- a/tests/wipy/wlan/wlan.py +++ b/tests/wipy/wlan/wlan.py @@ -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: |