[PATCH] tests: gas_server_oom: leave time to process GAS request
Johannes Berg
johannes at sipsolutions.net
Thu Jan 25 01:29:19 PST 2024
From: Johannes Berg <johannes.berg at intel.com>
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 at intel.com>
---
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
More information about the Hostap
mailing list