mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Reduces the unit test time of select bigip modules (#36256)
The modules in this patch include waits that need to happen to ensure something is correctly configured on a BIG-IP. These waits were raised as an issue in a recent ansible-testing meeting. This patch eliminates the waits by mocking time.sleep
This commit is contained in:
@@ -71,6 +71,11 @@ class TestManager(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.spec = ArgumentSpec()
|
||||
self.patcher1 = patch('time.sleep')
|
||||
self.patcher1.start()
|
||||
|
||||
def tearDown(self):
|
||||
self.patcher1.stop()
|
||||
|
||||
def test_run_single_command(self, *args):
|
||||
set_module_args(dict(
|
||||
|
||||
Reference in New Issue
Block a user