Do not run LANserver runtime test if we are not on an appropriate LAN (such as VMs/VPS)
parent
049956544e
commit
1aa707cea5
|
@ -12,6 +12,12 @@ def test_lan_server(testmanager):
|
||||||
start_time = get_epoch()
|
start_time = get_epoch()
|
||||||
for i in range(1337, 1340):
|
for i in range(1337, 1340):
|
||||||
try:
|
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!':
|
if requests.get(f"http://{best_ip}:{i}/ping").text == 'onionr!':
|
||||||
bl = insert('test data')
|
bl = insert('test data')
|
||||||
sleep(10)
|
sleep(10)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1592780436
|
1593415623
|
Loading…
Reference in New Issue