Merge pull request #2051 from aekoroglu/develop

unitary tests should run loopback interface
This commit is contained in:
Nicolas Hennion 2022-05-15 11:09:47 +02:00 committed by GitHub
commit feed48aa8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class TestGlances(unittest.TestCase):
global pid global pid
print('INFO: [TEST_000] Start the Glances Web Server') 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) print("Run the Glances Web Server on port %s" % SERVER_PORT)
args = shlex.split(cmdline) args = shlex.split(cmdline)
pid = subprocess.Popen(args) pid = subprocess.Popen(args)

View File

@ -53,7 +53,7 @@ class TestGlances(unittest.TestCase):
global pid global pid
print('INFO: [TEST_000] Start the Glances Web Server') 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) print("Run the Glances Server on port %s" % SERVER_PORT)
args = shlex.split(cmdline) args = shlex.split(cmdline)
pid = subprocess.Popen(args) pid = subprocess.Popen(args)