summary refs log tree commit diff
path: root/tests/logging/test_opentracing.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-01-26 14:45:24 -0500
committerGitHub <noreply@github.com>2023-01-26 14:45:24 -0500
commitfc35e0673f5b46ea0f5e53ef15626b14a452ca82 (patch)
treeca5cfd9a845b00e6b5e4d44da0e72a834db92459 /tests/logging/test_opentracing.py
parentFix paginating /relations with a live token (#14866) (diff)
downloadsynapse-fc35e0673f5b46ea0f5e53ef15626b14a452ca82.tar.xz
Add missing type hints in tests (#14879)
* FIx-up type hints in tests.logging.
* Add missing type hints to test_transactions.
Diffstat (limited to 'tests/logging/test_opentracing.py')
-rw-r--r--tests/logging/test_opentracing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/logging/test_opentracing.py b/tests/logging/test_opentracing.py

index 0917e478a5..e28ba84cc2 100644 --- a/tests/logging/test_opentracing.py +++ b/tests/logging/test_opentracing.py
@@ -153,7 +153,7 @@ class LogContextScopeManagerTestCase(TestCase): scopes = [] - async def task(i: int): + async def task(i: int) -> None: scope = start_active_span( f"task{i}", tracer=self._tracer, @@ -165,7 +165,7 @@ class LogContextScopeManagerTestCase(TestCase): self.assertEqual(self._tracer.active_span, scope.span) scope.close() - async def root(): + async def root() -> None: with start_active_span("root span", tracer=self._tracer) as root_scope: self.assertEqual(self._tracer.active_span, root_scope.span) scopes.append(root_scope)