Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Install dependencies: bare-metal, standalone"
[yardstick.git]
/
yardstick
/
tests
/
unit
/
network_services
/
vnf_generic
/
vnf
/
test_prox_helpers.py
diff --git
a/yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_helpers.py
b/yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_helpers.py
index
c74a6cf
..
d9031cd
100644
(file)
--- a/
yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_helpers.py
+++ b/
yardstick/tests/unit/network_services/vnf_generic/vnf/test_prox_helpers.py
@@
-293,7
+293,12
@@
no data length value
class TestProxSocketHelper(unittest.TestCase):
def setUp(self):
class TestProxSocketHelper(unittest.TestCase):
def setUp(self):
- self.mock_time_sleep = mock.patch.object(time, 'sleep').start()
+ self._mock_time_sleep = mock.patch.object(time, 'sleep')
+ self.mock_time_sleep = self._mock_time_sleep.start()
+ self.addCleanup(self._stop_mocks)
+
+ def _stop_mocks(self):
+ self._mock_time_sleep.stop()
@mock.patch('yardstick.network_services.vnf_generic.vnf.prox_helpers.socket')
def test___init__(self, mock_socket):
@mock.patch('yardstick.network_services.vnf_generic.vnf.prox_helpers.socket')
def test___init__(self, mock_socket):