test_provision: don't assert provision_node call order
provision_node is called from thread pool workers so the call order is not deterministic. This causes py38 job failures sometimes. This change asserts that the expected calls are occuring, but not their order. Change-Id: Id9f870e35dc9c92f0456d85c087514fb53053b76
This commit is contained in:
parent
a5fffb9242
commit
43eec5a109
|
@ -197,7 +197,7 @@ class TestMetalsmithInstances(unittest.TestCase):
|
|||
root_size_gb=None,
|
||||
swap_size_mb=None
|
||||
),
|
||||
])
|
||||
], any_order=True)
|
||||
mock_config.assert_has_calls([
|
||||
mock.call(ssh_keys=None, user_data=None, meta_data=None),
|
||||
mock.call(ssh_keys='abcd',
|
||||
|
|
Loading…
Reference in New Issue