Merge "Grease some more tests hitting RetryDecorator"
This commit is contained in:
commit
4d8d813ae7
|
@ -28,6 +28,8 @@ AUTOMAP_PARTITION = "/dev/nullp77"
|
|||
MAP_PARTITION = "/dev/mapper/nullp77"
|
||||
|
||||
|
||||
# Make RetryDecorator not actually sleep on retries
|
||||
@mock.patch('oslo_service.loopingcall._ThreadingEvent.wait', new=mock.Mock())
|
||||
class MountTestCase(test.NoDBTestCase):
|
||||
def _test_map_dev(self, partition):
|
||||
mount = api.Mount(mock.sentinel.image, mock.sentinel.mount_dir)
|
||||
|
|
|
@ -34,6 +34,8 @@ if sys.version_info > (3,):
|
|||
long = int
|
||||
|
||||
|
||||
# Make RetryDecorator not actually sleep on retries
|
||||
@mock.patch('oslo_service.loopingcall._ThreadingEvent.wait', new=mock.Mock())
|
||||
class GuestTestCase(test.NoDBTestCase):
|
||||
|
||||
def setUp(self):
|
||||
|
|
Loading…
Reference in New Issue