Skip to content

Commit 4363b3e

Browse files
committed
check webpage
1 parent 4f59ded commit 4363b3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/automated/helpers.py

+5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ def _connect_wifi(dongle_id, pw):
4949
assert cnt < MAX_TRIES
5050
if "-pair" in wifi_scan[0]:
5151
os.system("nmcli d wifi connect %s-pair" % (ssid))
52+
# fetch webpage
5253
print "connecting to insecure network to secure"
54+
r = requests.get("http://192.168.0.10/")
55+
assert r.status_code==200
56+
57+
print "securing"
5358
try:
5459
r = requests.get("http://192.168.0.10/secure", timeout=0.01)
5560
except requests.exceptions.Timeout:

0 commit comments

Comments
 (0)