diff options
author | James Falcon <james.falcon@canonical.com> | 2021-10-18 12:34:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 11:34:31 -0600 |
commit | 70f0ee78ce4926cb79f37e13568deba298321016 (patch) | |
tree | b93a5f6d96080cfcae9c425d7d9d0cc13248a4ce | |
parent | 62c2a56e053dd70638ef3421ffbfbc0b81356691 (diff) | |
download | vyos-cloud-init-70f0ee78ce4926cb79f37e13568deba298321016.tar.gz vyos-cloud-init-70f0ee78ce4926cb79f37e13568deba298321016.zip |
testing: mock sleep in gce unit tests (#1072)
-rw-r--r-- | tests/unittests/test_datasource/test_gce.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): |