]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make radius_acct_interim more robust
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 7 Feb 2017 21:07:04 +0000 (23:07 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Feb 2017 21:58:55 +0000 (23:58 +0200)
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 <jouni@qca.qualcomm.com>
tests/hwsim/test_radius.py

index d62851077b6d734182307fd5614281212c7f3e68..1bb4404a3dd4a3d6c819cb8d86b069a55065b9ef 100644 (file)
@@ -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"""