diff options
| author | Soren Hansen <soren@linux2go.dk> | 2011-03-22 16:23:47 +0100 |
|---|---|---|
| committer | Soren Hansen <soren@linux2go.dk> | 2011-03-22 16:23:47 +0100 |
| commit | d2494199df440809bbfbc55868b0dd57053868ed (patch) | |
| tree | 60de7a98785f85d0f05a236ee8862c09f995b207 | |
| parent | b718ec133a5ed64abca2c01232986bc3dfeae3c0 (diff) | |
| download | nova-d2494199df440809bbfbc55868b0dd57053868ed.tar.gz nova-d2494199df440809bbfbc55868b0dd57053868ed.tar.xz nova-d2494199df440809bbfbc55868b0dd57053868ed.zip | |
Remove checks in _cache_image tests that were too implementation specific.
| -rw-r--r-- | nova/tests/test_virt.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/tests/test_virt.py b/nova/tests/test_virt.py index b9cd30a79..6bafac39f 100644 --- a/nova/tests/test_virt.py +++ b/nova/tests/test_virt.py @@ -62,7 +62,7 @@ class CacheConcurrencyTestCase(test.TestCase): self.stubs.Set(os.path, 'exists', fake_exists) self.stubs.Set(utils, 'execute', fake_execute) - def notest_same_fname_concurrency(self): + def test_same_fname_concurrency(self): """Ensures that the same fname cache runs at a sequentially""" conn = libvirt_conn.LibvirtConnection wait1 = eventlet.event.Event() @@ -77,13 +77,11 @@ class CacheConcurrencyTestCase(test.TestCase): eventlet.sleep(0) try: self.assertFalse(done2.ready()) - self.assertTrue('fname' in conn._image_sems) finally: wait1.send() done1.wait() eventlet.sleep(0) self.assertTrue(done2.ready()) - self.assertFalse('fname' in conn._image_sems) def test_different_fname_concurrency(self): """Ensures that two different fname caches are concurrent""" |
