From d56877b3fea5495488e15892c4a49207050f43b8 Mon Sep 17 00:00:00 2001 From: wangwei1 Date: Thu, 14 Nov 2019 15:21:49 +0800 Subject: [PATCH] Fix bug for running unittest with unittest module When we run unittest with a way like: python -m unittest2 then NoSuchOptError exception will raised Change-Id: Ib0f9276c1b86ff7f2d1e401ddfae2bf4e920fa78 --- karbor/tests/unit/protection/test_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/karbor/tests/unit/protection/test_manager.py b/karbor/tests/unit/protection/test_manager.py index 132304bc..aca0d34f 100644 --- a/karbor/tests/unit/protection/test_manager.py +++ b/karbor/tests/unit/protection/test_manager.py @@ -27,6 +27,8 @@ from karbor.tests import base from karbor.tests.unit.protection import fakes CONF = cfg.CONF +CONF.import_opt('trigger_poll_interval', 'karbor.services.operationengine' + '.engine.triggers.timetrigger') class ProtectionServiceTest(base.TestCase):