diff options
author | Nicolargo <nicolas@nicolargo.com> | 2016-06-27 14:31:56 +0200 |
---|---|---|
committer | Nicolargo <nicolas@nicolargo.com> | 2016-06-27 14:31:56 +0200 |
commit | 7c2eff306c12581e519571f0baa27a1a0703e623 (patch) | |
tree | b56cd780ba445d66c796fca1a04ec92d63b10276 /unitest-restful.py | |
parent | 9fe43503259736bc78495503350bd5e19876f3ba (diff) |
Correct issue on Restfull unitest for ports plugin
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-x | unitest-restful.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unitest-restful.py b/unitest-restful.py index ee59978e..d5627582 100755 --- a/unitest-restful.py +++ b/unitest-restful.py @@ -56,8 +56,8 @@ class TestGlances(unittest.TestCase): print("Run the Glances Web Server on port %s" % SERVER_PORT) args = shlex.split(cmdline) pid = subprocess.Popen(args) - print("Please wait...") - time.sleep(3) + print("Please wait 5 seconds...") + time.sleep(5) self.assertTrue(pid is not None) @@ -94,7 +94,7 @@ class TestGlances(unittest.TestCase): if p in ('uptime', 'now'): self.assertIsInstance(req.json(), text_type) elif p in ('fs', 'percpu', 'sensors', 'alert', 'processlist', 'diskio', - 'hddtemp', 'batpercent', 'network', 'folders', 'amps'): + 'hddtemp', 'batpercent', 'network', 'folders', 'amps', 'ports'): self.assertIsInstance(req.json(), list) elif p in ('psutilversion', 'help'): pass |