Tests: Fix service stopping on cleanup
Our services don't have a 'kill' method, they have a 'stop' method, so
it doesn't make any sense to call the 'kill' method on them during test
cleanup.
This patch changes the 'kill' call with the right 'stop' call.
@@ -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
