diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-03-09 07:35:58 +0000 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-03-09 07:35:58 +0000 |
| commit | ddeab2da30bb2f74109854d982c6681e78e7a4ce (patch) | |
| tree | 9bcffdb5cfd74d3c66478c520ae0dafceed946fa /nova/tests | |
| parent | 77da93886be61230dea5a4a4c4de036a57e62550 (diff) | |
make static method for testing without initializing libvirt
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_virt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/test_virt.py b/nova/tests/test_virt.py index ec7498d72..113632a0c 100644 --- a/nova/tests/test_virt.py +++ b/nova/tests/test_virt.py @@ -57,7 +57,7 @@ class CacheConcurrencyTestCase(test.TestCase): def test_same_fname_concurrency(self): """Ensures that the same fname cache runs at a sequentially""" - conn = libvirt_conn.get_connection(False) + conn = libvirt_conn.LibvirtConnection wait1 = eventlet.event.Event() done1 = eventlet.event.Event() eventlet.spawn(conn._cache_image, _concurrency, @@ -78,7 +78,7 @@ class CacheConcurrencyTestCase(test.TestCase): def test_different_fname_concurrency(self): """Ensures that two different fname caches are concurrent""" - conn = libvirt_conn.get_connection(False) + conn = libvirt_conn.LibvirtConnection wait1 = eventlet.event.Event() done1 = eventlet.event.Event() eventlet.spawn(conn._cache_image, _concurrency, |
