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:
Steve Baker 2023-02-08 10:34:31 +13:00
parent a5fffb9242
commit 43eec5a109
1 changed files with 1 additions and 1 deletions

View File

@ -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',