summaryrefslogtreecommitdiff
path: root/osprofiler/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'osprofiler/tests/unit')
-rw-r--r--osprofiler/tests/unit/drivers/test_jaeger.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/osprofiler/tests/unit/drivers/test_jaeger.py b/osprofiler/tests/unit/drivers/test_jaeger.py
index e59e69b..63790b1 100644
--- a/osprofiler/tests/unit/drivers/test_jaeger.py
+++ b/osprofiler/tests/unit/drivers/test_jaeger.py
@@ -18,6 +18,8 @@ from unittest import mock
from osprofiler.drivers import jaeger
from osprofiler.tests import test
+from jaeger_client import Config
+
class JaegerTestCase(test.TestCase):
@@ -48,6 +50,9 @@ class JaegerTestCase(test.TestCase):
}
}
+ # Force to False as if already initialized, tracer will be None.
+ # see: jaeger_client/config.py#L374
+ Config._initialized = False
self.driver = jaeger.Jaeger("jaeger://127.0.0.1:6831",
project="nova", service="api")