mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
Fix test
This commit is contained in:
parent
3e2fcd67b2
commit
e664e9737c
1 changed files with 1 additions and 9 deletions
|
@ -5,6 +5,7 @@ from .. import unittest
|
||||||
from synapse.util.async import sleep
|
from synapse.util.async import sleep
|
||||||
from synapse.util.logcontext import LoggingContext
|
from synapse.util.logcontext import LoggingContext
|
||||||
|
|
||||||
|
|
||||||
class LoggingContextTestCase(unittest.TestCase):
|
class LoggingContextTestCase(unittest.TestCase):
|
||||||
|
|
||||||
def _check_test_key(self, value):
|
def _check_test_key(self, value):
|
||||||
|
@ -17,15 +18,6 @@ class LoggingContextTestCase(unittest.TestCase):
|
||||||
context_one.test_key = "test"
|
context_one.test_key = "test"
|
||||||
self._check_test_key("test")
|
self._check_test_key("test")
|
||||||
|
|
||||||
def test_chaining(self):
|
|
||||||
with LoggingContext() as context_one:
|
|
||||||
context_one.test_key = "one"
|
|
||||||
with LoggingContext() as context_two:
|
|
||||||
self._check_test_key("one")
|
|
||||||
context_two.test_key = "two"
|
|
||||||
self._check_test_key("two")
|
|
||||||
self._check_test_key("one")
|
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def test_sleep(self):
|
def test_sleep(self):
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
Loading…
Reference in a new issue