diff options
author | Sabari Kumar Murugesan <smurugesan@vmware.com> | 2015-03-18 11:44:06 -0700 |
---|---|---|
committer | Sabari Kumar Murugesan <smurugesan@vmware.com> | 2015-03-18 11:44:10 -0700 |
commit | c89bfe2722566f852a93bac966691cf1af2ad29a (patch) | |
tree | 3b33a32c39fe5f7cd73df7b73fe6accf8aac4ab2 | |
parent | 161e5e15e2e8c209c85db9bb9250e39f4e98d0a2 (diff) | |
download | glance_store-c89bfe2722566f852a93bac966691cf1af2ad29a.tar.gz |
Fix intermittent failure in test_vmware_store
The test test_delete_non_existing was failing intermittently due
to a missing mock.
Change-Id: If231fd1d7b88a48e2011306cfca620ac7e0ad41e
-rw-r--r-- | tests/unit/test_vmware_store.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test_vmware_store.py b/tests/unit/test_vmware_store.py index 7b2175f..6837513 100644 --- a/tests/unit/test_vmware_store.py +++ b/tests/unit/test_vmware_store.py @@ -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 """ |