From 5aafa3f523823746c6f0788560ff3ecd7a688e78 Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Tue, 27 May 2014 16:14:31 +0100 Subject: [PATCH] test_engine_service remove redundant DummyThreadGroups Remove DummyThreadGroup assignments, since they are assigning to an EngineService attribute which no longer exists (it's a legacy from an older heat-engine implementation) Change-Id: I60de53e88eeb56ab36ec7f3a697fd856b1a84925 --- heat/tests/test_engine_service.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/heat/tests/test_engine_service.py b/heat/tests/test_engine_service.py index d9e9c91457..ca561fe763 100644 --- a/heat/tests/test_engine_service.py +++ b/heat/tests/test_engine_service.py @@ -658,9 +658,6 @@ class StackServiceCreateUpdateDeleteTest(HeatTestCase): self.m.StubOutWithMock(parser.Stack, 'load') parser.Stack.load(self.ctx, stack=s).AndReturn(stack) - - self.man.tg = DummyThreadGroup() - self.m.ReplayAll() self.assertIsNone(self.man.delete_stack(self.ctx, stack.identifier())) @@ -687,7 +684,6 @@ class StackServiceCreateUpdateDeleteTest(HeatTestCase): st = db_api.stack_get(self.ctx, sid) self.m.StubOutWithMock(parser.Stack, 'load') parser.Stack.load(self.ctx, stack=st).MultipleTimes().AndReturn(stack) - self.man.tg = DummyThreadGroup() self.m.StubOutWithMock(stack_lock.StackLock, 'try_acquire') stack_lock.StackLock.try_acquire().AndReturn(self.man.engine_id) @@ -705,7 +701,6 @@ class StackServiceCreateUpdateDeleteTest(HeatTestCase): st = db_api.stack_get(self.ctx, sid) self.m.StubOutWithMock(parser.Stack, 'load') parser.Stack.load(self.ctx, stack=st).MultipleTimes().AndReturn(stack) - self.man.tg = DummyThreadGroup() self.m.StubOutWithMock(stack_lock.StackLock, 'try_acquire') stack_lock.StackLock.try_acquire().AndReturn(self.man.engine_id)