From e4b4e1748a9d09536e0eb67d85f0a8890874cfc5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 17 Mar 2019 15:29:02 +0200 Subject: [PATCH] tests: Clear monitor socket queue in ap_hs20_interworking_oom Do not leave all the event messages pending in the socket queue for the full duration of the test case to avoid hitting the TX socket queue limit. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 5a1120762..d193aa701 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -1,5 +1,5 @@ # Hotspot 2.0 tests -# Copyright (c) 2013-2015, Jouni Malinen +# Copyright (c) 2013-2019, Jouni Malinen # # This software may be distributed under the terms of the BSD license. # See README for more details. @@ -5469,6 +5469,7 @@ def test_ap_hs20_interworking_oom(dev, apdev): if ev is None: raise Exception("ANQP did not start") wait_fail_trigger(dev[0], "GET_ALLOC_FAIL") + dev[0].dump_monitor() def test_ap_hs20_no_cred_connect(dev, apdev): """Hotspot 2.0 and connect attempt without credential"""