Add assert_calls check testing volume calls with timeout enabled
Change-Id: I4203f0de012b3d84ece3ba7749568f39c92dcfeb Signed-off-by: Rosario Di Somma <rosario.disomma@dreamhost.com>
This commit is contained in:
parent
4b75c85e18
commit
b39045069f
|
@ -96,6 +96,7 @@ class TestCreateVolumeSnapshot(base.RequestsMockTestCase):
|
|||
exc.OpenStackCloudTimeout,
|
||||
self.cloud.create_volume_snapshot, volume_id=volume_id,
|
||||
wait=True, timeout=0.01)
|
||||
self.assert_calls(do_count=False)
|
||||
|
||||
def test_create_volume_snapshot_with_error(self):
|
||||
"""
|
||||
|
|
|
@ -98,3 +98,4 @@ class TestDeleteVolumeSnapshot(base.RequestsMockTestCase):
|
|||
exc.OpenStackCloudTimeout,
|
||||
self.cloud.delete_volume_snapshot, name_or_id='1234',
|
||||
wait=True, timeout=0.01)
|
||||
self.assert_calls(do_count=False)
|
||||
|
|
Loading…
Reference in New Issue