summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authortermie <github@anarkystic.com>2011-03-24 18:51:38 +0000
committerTarmac <>2011-03-24 18:51:38 +0000
commit0d42b309ac723d18e6795210bc8d8ca6d295de23 (patch)
tree1b322d6768213a38fc234b37f5d949dbacca53bb /nova/tests
parentf743e5374d58ab2c45702932da7b702ebb060817 (diff)
parent3c0fcc47be08ac4f3d508fd46f3b95036899aaad (diff)
Fixes a bug that was causing tests to fail on OS X by ensuring that greenthread sleep is called during retry loops.
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_volume.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/test_volume.py b/nova/tests/test_volume.py
index 5d68ca2ae..d71b75f3f 100644
--- a/nova/tests/test_volume.py
+++ b/nova/tests/test_volume.py
@@ -356,8 +356,8 @@ class ISCSITestCase(DriverTestCase):
tid = db.volume_get_iscsi_target_num(self.context, volume_id_list[0])
self.mox.StubOutWithMock(self.volume.driver, '_execute')
self.volume.driver._execute("sudo", "ietadm", "--op", "show",
- "--tid=%(tid)d" % locals()
- ).AndRaise(exception.ProcessExecutionError())
+ "--tid=%(tid)d" % locals()).AndRaise(
+ exception.ProcessExecutionError())
self.mox.ReplayAll()
self.assertRaises(exception.ProcessExecutionError,