Merge "Mock time.sleep in ISCSIConnectorTestCase"

This commit is contained in:
Jenkins 2016-05-31 01:21:04 +00:00 committed by Gerrit Code Review
commit c792bc98c8

View File

@ -434,6 +434,7 @@ class ISCSIConnectorTestCase(ConnectorTestCase):
'multipath_id': FAKE_SCSI_WWN}
self.assertEqual(expected_result, result)
@mock.patch('time.sleep', mock.Mock())
def _test_connect_volume(self, extra_props, additional_commands,
transport=None, disconnect_mock=None):
# for making sure the /dev/disk/by-path is gone