Do not run LANserver runtime test if we are not on an appropriate LAN (such as VMs/VPS)
This commit is contained in:
		
							parent
							
								
									049956544e
								
							
						
					
					
						commit
						1aa707cea5
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -12,6 +12,12 @@ def test_lan_server(testmanager): | |||
|     start_time = get_epoch() | ||||
|     for i in range(1337, 1340): | ||||
|         try: | ||||
|             if not best_ip or not best_ip.startswith(('192.168')): | ||||
|                 logger.warn( | ||||
|                     "lanservertest not running, not in standard 192.168 lan " + | ||||
|                     "run this test on a lan before release", | ||||
|                     terminal=True) | ||||
|                 return | ||||
|             if requests.get(f"http://{best_ip}:{i}/ping").text == 'onionr!': | ||||
|                 bl = insert('test data') | ||||
|                 sleep(10) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue