mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Fix Python sleep function
Current Python versions have no os.sleep(), use time.sleep() instead. module 'os' has no attribute 'sleep' Traceback (most recent call last): File "./run-tests.py", line 521, in main t(dev, apdev) File "/home/mtheil/hostap/tests/hwsim/test_pmksa_cache.py", line 356, in test_pmksa_cache_expiration hapd.wait_ptkinitdone(dev[0].own_addr()) File "/home/mtheil/hostap/tests/hwsim/hostapd.py", line 282, in wait_ptkinitdone os.sleep(0.1) Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
This commit is contained in:
parent
3df4c05aec
commit
7a42316374
@ -279,7 +279,7 @@ class Hostapd:
|
||||
state = sta['hostapdWPAPTKState']
|
||||
if state == "11":
|
||||
return
|
||||
os.sleep(0.1)
|
||||
time.sleep(0.1)
|
||||
timeout -= 0.1
|
||||
raise Exception("Timeout while waiting for PTKINITDONE")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user