From b3b012b177682cc44848085cd9ff4c9d3d14cb04 Mon Sep 17 00:00:00 2001 From: aekoroglu Date: Sun, 8 May 2022 22:01:40 +0300 Subject: [PATCH] tests runs on loopback interface --- unitest-restful.py | 2 +- unitest-xmlrpc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unitest-restful.py b/unitest-restful.py index 7b77a2b9..14bd691f 100755 --- a/unitest-restful.py +++ b/unitest-restful.py @@ -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) diff --git a/unitest-xmlrpc.py b/unitest-xmlrpc.py index 7e52ec5e..f1310808 100755 --- a/unitest-xmlrpc.py +++ b/unitest-xmlrpc.py @@ -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)