Speed up kaminario's drivers tests

Reduce time of execution kaminario's drivers failover_host tests
by patching eventlet.sleep function

Change-Id: I2e4f9309ba10bfc4b2dfb88989712e1dd5bf992a
Closes-Bug: #1627659
This commit is contained in:
Mykhailo Dovgal 2016-09-23 18:31:10 +03:00
parent c5ae61e2ab
commit e408e5b944

View File

@ -130,6 +130,7 @@ class TestKaminarioISCSI(test.TestCase):
self.vol.volume_type.extra_specs = {'foo': None}
self.snap = fake_snapshot.fake_snapshot_obj(self.context)
self.snap.volume = self.vol
self.patch('eventlet.sleep')
def _setup_config(self):
self.conf = mock.Mock(spec=configuration.Configuration)