[PATCH] tests: gas_server_oom: leave time to process GAS request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

Due to scheduling in UML time-travel, the test may continue
running and find that the failure didn't trigger when really
the frame just didn't make it through to the other side. Add
some time for the necessary processing.

Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
 tests/hwsim/test_gas.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py
index d8b361e10323..0a35d63d1da1 100644
--- a/tests/hwsim/test_gas.py
+++ b/tests/hwsim/test_gas.py
@@ -1918,6 +1918,9 @@ def test_gas_server_oom(dev, apdev):
         if "OK" not in wpas.request(req):
             raise Exception("Could not send management frame")
         wait_fail_trigger(hapd, "GET_ALLOC_FAIL")
+        # leave some time for the frame to be transmitted, received
+        # and processed
+        time.sleep(0.1)
 
 def test_gas_anqp_overrides(dev, apdev):
     """GAS and ANQP overrides"""
-- 
2.43.0


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux