mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix flakieness in create wake on lan test
This commit is contained in:
parent
ff80d537ab
commit
23b2c3ed7c
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ class SaltifyTestCase(TestCase, LoaderModuleMockMixin):
|
|||
result = saltify.create(vm_)
|
||||
mock_cmd.assert_called_once_with(vm_, ANY)
|
||||
mm_cmd.assert_called_with('friend1', 'network.wol', ['aa-bb-cc-dd-ee-ff'])
|
||||
mock_sleep.assert_called_with(0.01)
|
||||
# The test suite might call time.sleep, look for any call
|
||||
# that has the expected wait time.
|
||||
mock_sleep.assert_any_call(0.01)
|
||||
self.assertTrue(result)
|
||||
|
||||
def test_avail_locations(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue