Merge "change to valid error status in test_generic"

This commit is contained in:
Zuul 2022-02-22 20:21:26 +00:00 committed by Gerrit Code Review
commit 1dc17d9e14

View File

@ -833,7 +833,7 @@ class GenericShareDriverTestCase(test.TestCase):
@mock.patch('time.sleep')
def test_wait_for_available_volume_error_extending(self, mock_sleep):
fake_volume = {'status': 'error_extending', 'id': 'fake'}
fake_volume = {'status': const.STATUS_EXTENDING_ERROR, 'id': 'fake'}
self.assertRaises(exception.ManilaException,
self._driver._wait_for_available_volume,
fake_volume, 5, 'error', 'timeout')