Fix the ThreadMgr mocking in test_stack_create_max_unlimited
use the helper method _test_stack_create() as it correctly mocks the ThreadMgr. Otherwise this runs in the background and the test deletes the stack while it is running in the background. Change-Id: Ia64a09c93cf5414b0943fc9495c435355b5645fc Closes-bug: #1432936
This commit is contained in:
parent
bbe08b18eb
commit
fdd249860d
@ -344,5 +344,4 @@ class StackCreateTest(common.HeatTestCase):
|
||||
validate_mock.return_value = None
|
||||
cfg.CONF.set_override('max_resources_per_stack', -1)
|
||||
stack_name = 'service_create_test_max_unlimited'
|
||||
stack = tools.get_stack(stack_name, self.ctx)
|
||||
self.man.create_stack(self.ctx, stack_name, stack.t.t, {}, None, {})
|
||||
self._test_stack_create(stack_name)
|
||||
|
Loading…
Reference in New Issue
Block a user