diff --git a/heat/tests/test_engine_service.py b/heat/tests/test_engine_service.py index c259155dde..c92a3d3316 100644 --- a/heat/tests/test_engine_service.py +++ b/heat/tests/test_engine_service.py @@ -293,6 +293,8 @@ class stackServiceCreateUpdateDeleteTest(HeatTestCase): parser.Stack.load(self.ctx, stack=s).AndReturn(stack) + self.man.tg = DummyThreadGroup() + self.m.ReplayAll() self.assertEqual(self.man.delete_stack(self.ctx, stack.identifier()), @@ -338,6 +340,9 @@ class stackServiceCreateUpdateDeleteTest(HeatTestCase): self.m.StubOutWithMock(stack, 'validate') stack.validate().AndReturn(None) + self.m.StubOutWithMock(threadgroup, 'ThreadGroup') + threadgroup.ThreadGroup().AndReturn(DummyThreadGroup()) + self.m.ReplayAll() result = self.man.update_stack(self.ctx, old_stack.identifier(),