summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-11-19 17:01:45 +0000
committerRichard van der Hoff <richard@matrix.org>2018-11-19 17:07:01 +0000
commita267c2e3ed845501425aafa41eaba74284bbf502 (patch)
treec0c47ce9629152940a2a541e6841dd9716d95970
parentFix some tests which leaked logcontexts (diff)
downloadsynapse-a267c2e3ed845501425aafa41eaba74284bbf502.tar.xz
Fix logcontext leak in http pusher test
-rw-r--r--tests/push/test_http.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/push/test_http.py b/tests/push/test_http.py
index addc01ab7f..6dc45e8506 100644
--- a/tests/push/test_http.py
+++ b/tests/push/test_http.py
@@ -18,6 +18,7 @@ from mock import Mock
 from twisted.internet.defer import Deferred
 
 from synapse.rest.client.v1 import admin, login, room
+from synapse.util.logcontext import make_deferred_yieldable
 
 from tests.unittest import HomeserverTestCase
 
@@ -47,7 +48,7 @@ class HTTPPusherTests(HomeserverTestCase):
         def post_json_get_json(url, body):
             d = Deferred()
             self.push_attempts.append((d, url, body))
-            return d
+            return make_deferred_yieldable(d)
 
         m.post_json_get_json = post_json_get_json