From: Eric Harney Date: Mon, 4 May 2015 21:14:08 +0000 (-0400) Subject: Tests: Remove sleep from NFS tests X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=246bdcff99de933f6010656fb762c4e766fe91bd;p=openstack-build%2Fcinder-build.git Tests: Remove sleep from NFS tests This will shave a few seconds off of a unit test run. Change-Id: I785607f5efe9ed45b1555bbbaab38b68c57f5cc3 --- 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