From: Jouni Malinen Date: Sun, 20 Dec 2015 18:56:34 +0000 (+0200) Subject: tests: Update gas_anqp_oom_hapd to match new implementation X-Git-Tag: hostap_2_6~1132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35c146bc1bed12974630bf7546f4b2e440bfd753;p=thirdparty%2Fhostap.git tests: Update gas_anqp_oom_hapd to match new implementation Since wpa_supplicant is now retrying GAS comeback failures once, the gas_anqp_oom_hapd test case started failing. Fix this by updating the test case to expect success (on the retry). Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py index e8eac9fe0..99a511fc0 100644 --- a/tests/hwsim/test_gas.py +++ b/tests/hwsim/test_gas.py @@ -925,7 +925,8 @@ def test_gas_anqp_oom_hapd(dev, apdev): with alloc_fail(hapd, 1, "gas_anqp_build_comeback_resp"): hapd.set("gas_frag_limit", "50") - # This query will time out due to the AP not sending a response (OOM). + # The first attempt of this query will time out due to the AP not + # sending a response (OOM), but the retry succeeds. dev[0].request("FETCH_ANQP") ev = dev[0].wait_event(["GAS-QUERY-START"], timeout=5) if ev is None: @@ -934,13 +935,13 @@ def test_gas_anqp_oom_hapd(dev, apdev): ev = dev[0].wait_event(["GAS-QUERY-DONE"], timeout=10) if ev is None: raise Exception("GAS query timed out") - if "result=TIMEOUT" not in ev: + if "result=SUCCESS" not in ev: raise Exception("Unexpected result: " + ev) ev = dev[0].wait_event(["ANQP-QUERY-DONE"], timeout=10) if ev is None: raise Exception("ANQP-QUERY-DONE event not seen") - if "result=FAILURE" not in ev: + if "result=SUCCESS" not in ev: raise Exception("Unexpected result: " + ev) def test_gas_anqp_extra_elements(dev, apdev):