Do not run LANserver runtime test if we are not on an appropriate LAN (such as VMs/VPS)

master
Kevin 2020-06-29 02:28:50 -05:00
parent 049956544e
commit 1aa707cea5
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -1 +1 @@
1592780436
1593415623