Merge "Grease some more tests hitting RetryDecorator"

This commit is contained in:
Zuul 2018-08-07 11:08:59 +00:00 committed by Gerrit Code Review
commit 4d8d813ae7
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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):