]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear monitor socket queue in ap_hs20_interworking_oom
authorJouni Malinen <j@w1.fi>
Sun, 17 Mar 2019 13:29:02 +0000 (15:29 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 17 Mar 2019 14:08:31 +0000 (16:08 +0200)
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 <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index 5a112076240def9b0d8b89e89642d231141f4a17..d193aa701eff5abdf9a73767633f958d74d99e17 100644 (file)
@@ -1,5 +1,5 @@
 # Hotspot 2.0 tests
-# Copyright (c) 2013-2015, Jouni Malinen <j@w1.fi>
+# Copyright (c) 2013-2019, Jouni Malinen <j@w1.fi>
 #
 # 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"""