From 2fa218502ef544f547527d5820c7268b3b68067a Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Wed, 8 May 2013 16:43:29 +0200 Subject: [PATCH] Explicitely register options to fix intermittent failure Using parallel tests, stackServiceTest sometimes fail with a NoSuchOptError. Adding a register_engine_opts call seems to fix it. Change-Id: I2bc6e7ab8d2e2cb20d1f3e7d0d93d75bdb631af3 --- heat/tests/test_engine_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heat/tests/test_engine_service.py b/heat/tests/test_engine_service.py index 4b657a7e..c259155d 100644 --- a/heat/tests/test_engine_service.py +++ b/heat/tests/test_engine_service.py @@ -18,6 +18,7 @@ import json import mox from oslo.config import cfg +from heat.common import config from heat.common import context from heat.common import exception from heat.tests.v1_1 import fakes @@ -423,6 +424,7 @@ class stackServiceTestBase(HeatTestCase): def setUp(self): setup_dummy_db() + config.register_engine_opts() m = mox.Mox() self.username = 'stack_service_test_user' ctx = create_context(m, self.username, self.tenant) -- 2.45.2