Commit fd0d5c7a authored by gordon chung's avatar gordon chung

close services in test

our gate is hanging because oslo.messaging will persist if we don't
kill notification service at end of test.

Change-Id: I8384b6078791bc46c7cc739835668fbdef5dfb80
parent 7cff2158
......@@ -284,6 +284,7 @@ class TestRealNotificationReloadablePipeline(BaseRealNotification):
pipeline_poller_call = mock.call(1, self.srv.refresh_pipeline)
self.assertIn(pipeline_poller_call,
self.srv.tg.add_timer.call_args_list)
self.srv.stop()
def test_notification_reloaded_pipeline(self):
pipeline_cfg_file = self.setup_pipeline(['instance'])
......@@ -302,6 +303,7 @@ class TestRealNotificationReloadablePipeline(BaseRealNotification):
self.srv.refresh_pipeline()
self.assertNotEqual(pipeline, self.srv.pipe_manager)
self.srv.stop()
def test_notification_reloaded_event_pipeline(self):
ev_pipeline_cfg_file = self.setup_event_pipeline(
......@@ -324,6 +326,7 @@ class TestRealNotificationReloadablePipeline(BaseRealNotification):
self.srv.refresh_pipeline()
self.assertNotEqual(pipeline, self.srv.pipe_manager)
self.srv.stop()
class TestRealNotification(BaseRealNotification):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment