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:
Sabari Kumar Murugesan 2015-03-18 11:44:06 -07:00
parent 161e5e15e2
commit c89bfe2722
1 changed files with 2 additions and 1 deletions

View File

@ -225,7 +225,8 @@ class TestStore(base.StoreBaseTest,
HttpConn.return_value = FakeHTTPConnection(status=404)
self.assertRaises(exceptions.NotFound,, loc)
def test_delete_non_existing(self):
def test_delete_non_existing(self, mock_api_session):
Test that trying to delete an image that doesn't exist raises an error