diff options
author | Jonathan Afek <jonathan@wizery.com> | 2016-07-13 17:06:04 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2016-09-17 19:12:35 (GMT) |
commit | c7ca843d05e36f9780b62afa6b45f02af8263534 (patch) | |
tree | b6218387cca4f63f9e0a314ebfd370d9ad064ea2 /tests | |
parent | 67a0d4f94ecebbf72ed20310684192f7aa51f13a (diff) | |
download | hostap-c7ca843d05e36f9780b62afa6b45f02af8263534.zip hostap-c7ca843d05e36f9780b62afa6b45f02af8263534.tar.gz hostap-c7ca843d05e36f9780b62afa6b45f02af8263534.tar.bz2 |
tests: Increase timeout for remote tests
Some operations take longer time on real hardware than on hwsim. This
commit increases two timeouts so that the tests will pass on real
hardware, too.
Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hwsim/test_ap_qosmap.py | 3 | ||||
-rw-r--r-- | tests/hwsim/wpasupplicant.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/hwsim/test_ap_qosmap.py b/tests/hwsim/test_ap_qosmap.py index 36e35d2..ffe8ca0 100644 --- a/tests/hwsim/test_ap_qosmap.py +++ b/tests/hwsim/test_ap_qosmap.py @@ -22,7 +22,8 @@ def check_qos_map(ap, hapd, dev, sta, dscp, tid, ap_tid=None): wt = Wlantest() wt.clear_sta_counters(bssid, sta) hwsim_utils.test_connectivity(dev, hapd, dscp=dscp, config=False) - time.sleep(0.02) + sleep_time = 0.02 if dev.hostname is None else 0.2 + time.sleep(sleep_time) tx = wt.get_tx_tid(bssid, sta, tid) if tx == 0: [ tx, rx ] = wt.get_tid_counters(bssid, sta) diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index d3f5c9f..ba2552c 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -815,7 +815,8 @@ class WpaSupplicant: except: pass self.gctrl_mon = None - ev = self.wait_global_event(["P2P-GROUP-REMOVED"], timeout=3) + timeout = 3 if self.hostname is None else 10 + ev = self.wait_global_event(["P2P-GROUP-REMOVED"], timeout=timeout) if ev is None: raise Exception("Group removal event timed out") if "reason=GO_ENDING_SESSION" not in ev: |