summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cinder/tests/unit/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cinder/tests/unit/test.py b/cinder/tests/unit/test.py
index 21f2d1eb8..df9a3eebf 100644
--- a/cinder/tests/unit/test.py
+++ b/cinder/tests/unit/test.py
@@ -333,10 +333,10 @@ class TestCase(testtools.TestCase):
def _common_cleanup(self):
"""Runs after each test method to tear down test environment."""
- # Kill any services
+ # Stop any services (this stops RPC handlers)
for x in self._services:
try:
- x.kill()
+ x.stop()
except Exception:
pass