From f4c50f1cfc766974374a8e58bd98e50bef8df3ba Mon Sep 17 00:00:00 2001
From: danicampora <daniel@wipy.io>
Date: Mon, 19 Oct 2015 20:09:25 +0200
Subject: [PATCH] tests/wipy: Make WLAN test more stable.

---
 tests/wipy/wlan/wlan.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/wipy/wlan/wlan.py b/tests/wipy/wlan/wlan.py
index 9e18f0c4c..72a20d4fa 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:
-- 
GitLab