tests: Make go_search_non_social more robust
Try the initial scan on the operating channel twice before claiming a test failure. It is possible for an active scan to fail to see the GO especially if running the test under heavy load. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
		
							parent
							
								
									ac723b35bb
								
							
						
					
					
						commit
						62e0e57a98
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -627,6 +627,10 @@ def test_go_search_non_social(dev): | ||||||
|     autogo(dev[0], freq=2422) |     autogo(dev[0], freq=2422) | ||||||
|     dev[1].p2p_find(freq=2422) |     dev[1].p2p_find(freq=2422) | ||||||
|     ev = dev[1].wait_global_event(["P2P-DEVICE-FOUND"], timeout=3.5) |     ev = dev[1].wait_global_event(["P2P-DEVICE-FOUND"], timeout=3.5) | ||||||
|  |     if ev is None: | ||||||
|  |         dev[1].p2p_stop_find() | ||||||
|  |         dev[1].p2p_find(freq=2422) | ||||||
|  |         ev = dev[1].wait_global_event(["P2P-DEVICE-FOUND"], timeout=3.5) | ||||||
|         if ev is None: |         if ev is None: | ||||||
|             raise Exception("Did not find GO quickly enough") |             raise Exception("Did not find GO quickly enough") | ||||||
|     dev[2].p2p_listen() |     dev[2].p2p_listen() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Jouni Malinen
						Jouni Malinen