summaryrefslogtreecommitdiffstats
path: root/unitest-restful.py
diff options
context:
space:
mode:
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-xunitest-restful.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/unitest-restful.py b/unitest-restful.py
index 55fb5292..efd7e572 100755
--- a/unitest-restful.py
+++ b/unitest-restful.py
@@ -20,8 +20,6 @@
"""Glances unitary tests suite for the RESTFul API."""
-import gettext
-import locale
import sys
import time
import unittest
@@ -52,11 +50,6 @@ if not is_linux:
else:
print('Unitary tests for {0} {1}'.format(appname, version))
-# Import local settings
-from glances.core.glances_globals import gettext_domain, locale_dir
-locale.setlocale(locale.LC_ALL, '')
-gettext.install(gettext_domain, locale_dir)
-
# Init Glances core
from glances.core.glances_main import GlancesMain
core = GlancesMain()
@@ -91,7 +84,7 @@ class TestGlances(unittest.TestCase):
args = shlex.split(cmdline)
pid = subprocess.Popen(args)
print("Please wait...")
- time.sleep(1)
+ time.sleep(3)
self.assertTrue(pid is not None)