Merge "Fix slow test_connect_volume_device_not_valid test"

This commit is contained in:
Jenkins 2017-06-19 11:14:32 +00:00 committed by Gerrit Code Review
commit 9728815feb
1 changed files with 1 additions and 0 deletions

View File

@ -417,6 +417,7 @@ class FibreChannelConnectorTestCase(test_connector.ConnectorTestCase):
actual = self.connector.get_all_available_volumes()
self.assertItemsEqual(expected, actual)
@mock.patch('eventlet.greenthread.sleep', mock.Mock())
@mock.patch.object(linuxscsi.LinuxSCSI, 'find_multipath_device')
@mock.patch.object(linuxscsi.LinuxSCSI, 'wait_for_rw')
@mock.patch.object(os.path, 'exists', return_value=True)