tests runs on loopback interface

pull/2051/head
aekoroglu 2022-05-08 22:01:40 +03:00
parent de9dd6769a
commit b3b012b177
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class TestGlances(unittest.TestCase):
global pid
print('INFO: [TEST_000] Start the Glances Web Server')
cmdline = "python -m glances -w -p %s" % SERVER_PORT
cmdline = "python -m glances -B localhost -w -p %s" % SERVER_PORT
print("Run the Glances Web Server on port %s" % SERVER_PORT)
args = shlex.split(cmdline)
pid = subprocess.Popen(args)

View File

@ -53,7 +53,7 @@ class TestGlances(unittest.TestCase):
global pid
print('INFO: [TEST_000] Start the Glances Web Server')
cmdline = "python -m glances -s -p %s" % SERVER_PORT
cmdline = "python -m glances -B localhost -s -p %s" % SERVER_PORT
print("Run the Glances Server on port %s" % SERVER_PORT)
args = shlex.split(cmdline)
pid = subprocess.Popen(args)