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 <jouni@qca.qualcomm.com>
This commit is contained in:
		
							parent
							
								
									0fcaff7a70
								
							
						
					
					
						commit
						b8564c9db0
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -273,12 +273,12 @@ def test_radius_acct_interim(dev, apdev): | ||||||
|     connect(dev[0], "radius-acct") |     connect(dev[0], "radius-acct") | ||||||
|     logger.info("Checking for RADIUS counters") |     logger.info("Checking for RADIUS counters") | ||||||
|     as_mib_start = as_hapd.get_mib(param="radius_server") |     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") |     as_mib_end = as_hapd.get_mib(param="radius_server") | ||||||
|     req_s = int(as_mib_start['radiusAccServTotalRequests']) |     req_s = int(as_mib_start['radiusAccServTotalRequests']) | ||||||
|     req_e = int(as_mib_end['radiusAccServTotalRequests']) |     req_e = int(as_mib_end['radiusAccServTotalRequests']) | ||||||
|     if req_e < req_s + 3: |     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): | def test_radius_acct_interim_unreachable(dev, apdev): | ||||||
|     """RADIUS Accounting interim update with unreachable server""" |     """RADIUS Accounting interim update with unreachable server""" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Jouni Malinen
						Jouni Malinen