Skip to content

Commit

Permalink
check webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Feb 14, 2018
1 parent 4f59ded commit 4363b3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/automated/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ def _connect_wifi(dongle_id, pw):
assert cnt < MAX_TRIES
if "-pair" in wifi_scan[0]:
os.system("nmcli d wifi connect %s-pair" % (ssid))
# fetch webpage
print "connecting to insecure network to secure"
r = requests.get("http://192.168.0.10/")
assert r.status_code==200

print "securing"
try:
r = requests.get("http://192.168.0.10/secure", timeout=0.01)
except requests.exceptions.Timeout:
Expand Down

0 comments on commit 4363b3e

Please sign in to comment.