From: Jouni Malinen Date: Tue, 7 Feb 2017 21:07:04 +0000 (+0200) Subject: tests: Make radius_acct_interim more robust X-Git-Tag: hostap_2_7~1647 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8564c9db0dd35cc02a15c658a6ae2c2cb139eeb;p=thirdparty%2Fhostap.git tests: Make radius_acct_interim more robust Wait one more second to make the test case less likely to fail while still being able to verify that interim updates are performed. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index d62851077..1bb4404a3 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -273,12 +273,12 @@ def test_radius_acct_interim(dev, apdev): connect(dev[0], "radius-acct") logger.info("Checking for RADIUS counters") as_mib_start = as_hapd.get_mib(param="radius_server") - time.sleep(3.1) + time.sleep(4.1) as_mib_end = as_hapd.get_mib(param="radius_server") req_s = int(as_mib_start['radiusAccServTotalRequests']) req_e = int(as_mib_end['radiusAccServTotalRequests']) if req_e < req_s + 3: - raise Exception("Unexpected RADIUS server acct MIB value") + raise Exception("Unexpected RADIUS server acct MIB value (req_e=%d req_s=%d)" % (req_e, req_s)) def test_radius_acct_interim_unreachable(dev, apdev): """RADIUS Accounting interim update with unreachable server"""