Skip to content
Snippets Groups Projects
Commit 85cef289 authored by Jaden DIEFENBAUGH's avatar Jaden DIEFENBAUGH
Browse files

[ci] debug docker timing test

parent 5a3ac1df
No related branches found
No related tags found
2 merge requests!32Merge development branch 1.6.x,!23[dock] Closes #55 by restricting the image search to images with the name containing `beat.env.`
Pipeline #
...@@ -242,7 +242,9 @@ class HostTest(unittest.TestCase): ...@@ -242,7 +242,9 @@ class HostTest(unittest.TestCase):
nb_images = len(Host.images_cache) nb_images = len(Host.images_cache)
self.assertTrue(nb_images > 0) self.assertTrue(nb_images > 0)
self.assertTrue(stop - start > 2.0) time_nocache = stop - start
print(time_nocache)
self.assertTrue(time_nocache > 2.0)
# Should be instantaneous # Should be instantaneous
start = time.time() start = time.time()
...@@ -254,7 +256,9 @@ class HostTest(unittest.TestCase): ...@@ -254,7 +256,9 @@ class HostTest(unittest.TestCase):
self.assertEqual(len(Host.images_cache), nb_images) self.assertEqual(len(Host.images_cache), nb_images)
self.assertTrue(stop - start < 1.0) time_cache = stop - start
print(time_cache)
self.assertTrue(time_cache < 1.0)
@slow @slow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment