]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Explicitely register options to fix intermittent failure
authorThomas Herve <therve@gmail.com>
Wed, 8 May 2013 14:43:29 +0000 (16:43 +0200)
committerThomas Herve <therve@gmail.com>
Wed, 8 May 2013 14:43:29 +0000 (16:43 +0200)
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

index 4b657a7e5d9fd4517321e002d715421c519411a3..c259155ddedf49c036b0a46c1ebd0b4a4fd8b7d6 100644 (file)
@@ -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)