From 70f0ee78ce4926cb79f37e13568deba298321016 Mon Sep 17 00:00:00 2001 From: James Falcon Date: Mon, 18 Oct 2021 12:34:31 -0500 Subject: testing: mock sleep in gce unit tests (#1072) --- tests/unittests/test_datasource/test_gce.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/unittests/test_datasource/test_gce.py b/tests/unittests/test_datasource/test_gce.py index 01f4cbd1..80b38f9e 100644 --- a/tests/unittests/test_datasource/test_gce.py +++ b/tests/unittests/test_datasource/test_gce.py @@ -106,6 +106,7 @@ class TestDataSourceGCE(test_helpers.HttprettyTestCase): self.m_platform_reports_gce = ppatch.start() self.m_platform_reports_gce.return_value = True self.addCleanup(ppatch.stop) + self.add_patch('time.sleep', 'm_sleep') # just to speed up tests super(TestDataSourceGCE, self).setUp() def test_connection(self): -- cgit v1.2.3