From 246bdcff99de933f6010656fb762c4e766fe91bd Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Mon, 4 May 2015 17:14:08 -0400 Subject: [PATCH] Tests: Remove sleep from NFS tests This will shave a few seconds off of a unit test run. Change-Id: I785607f5efe9ed45b1555bbbaab38b68c57f5cc3 --- cinder/tests/unit/test_nfs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinder/tests/unit/test_nfs.py b/cinder/tests/unit/test_nfs.py index 594f24f50..21e1099c9 100644 --- a/cinder/tests/unit/test_nfs.py +++ b/cinder/tests/unit/test_nfs.py @@ -1105,7 +1105,8 @@ class NfsDriverTestCase(test.TestCase): drv._remotefsclient.mount.called_once() - def test_ensure_share_mounted_exception(self): + @mock.patch('time.sleep') + def test_ensure_share_mounted_exception(self, _mock_sleep): """Make the configured number of attempts when mounts fail.""" num_attempts = 3 -- 2.45.2