Fix intermittent failure in test_vmware_store
The test test_delete_non_existing was failing intermittently due to a missing mock. Change-Id: If231fd1d7b88a48e2011306cfca620ac7e0ad41e
This commit is contained in:
parent
161e5e15e2
commit
c89bfe2722
|
@ -225,7 +225,8 @@ class TestStore(base.StoreBaseTest,
|
|||
HttpConn.return_value = FakeHTTPConnection(status=404)
|
||||
self.assertRaises(exceptions.NotFound, self.store.get, loc)
|
||||
|
||||
def test_delete_non_existing(self):
|
||||
@mock.patch('oslo_vmware.api.VMwareAPISession')
|
||||
def test_delete_non_existing(self, mock_api_session):
|
||||
"""
|
||||
Test that trying to delete an image that doesn't exist raises an error
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue