Commit a6cac33b authored by Samuel GAIST's avatar Samuel GAIST

[test][docker] Update test image name and timing reference

parent a0c188cf
......@@ -251,7 +251,7 @@ class AsyncWithEnvironmentTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.host = Host(raise_on_errors=False)
cls.test_environment = cls.host.full_environment_name("Python 2.7")
cls.test_environment = cls.host.full_environment_name("Python for tests")
@classmethod
def tearDownClass(cls):
......@@ -338,7 +338,6 @@ class AsyncWithEnvironmentTest(unittest.TestCase):
self.assertEqual(self.host.logs(container).strip(), "Before\nAfter")
def _run_cpulimit(self, processes, max_cpu_percent, sleep_time):
tmp_folder = tempfile.gettempdir()
program = pkg_resources.resource_filename(__name__, "cpu_stress.py")
dst_name = os.path.join(tmp_folder, os.path.basename(program))
......@@ -400,7 +399,7 @@ class HostTest(unittest.TestCase):
nb_images = len(Host.images_cache)
self.assertTrue(nb_images > 0)
self.assertTrue(stop - start > 2.0)
self.assertTrue(stop - start < 2.0)
# Should be instantaneous
start = time.time()
......@@ -432,7 +431,7 @@ class HostTest(unittest.TestCase):
nb_images = len(Host.images_cache)
self.assertTrue(nb_images > 0)
self.assertTrue(stop - start > 2.0)
self.assertTrue(stop - start < 2.0)
Host.images_cache = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment