]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Tests: Remove sleep from NFS tests
authorEric Harney <eharney@redhat.com>
Mon, 4 May 2015 21:14:08 +0000 (17:14 -0400)
committerEric Harney <eharney@redhat.com>
Mon, 4 May 2015 21:14:32 +0000 (17:14 -0400)
This will shave a few seconds off of a unit test run.

Change-Id: I785607f5efe9ed45b1555bbbaab38b68c57f5cc3

cinder/tests/unit/test_nfs.py

index 594f24f50342e785c4d4c08c448c082503fdab5b..21e1099c9535f183f5c453a512165204d83dfe9d 100644 (file)
@@ -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