summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-11-19 17:05:09 +0000
committerRichard van der Hoff <richard@matrix.org>2018-11-19 17:07:01 +0000
commit828f18bd8bbb9ab328b48de72f3d50482b6cceb5 (patch)
treee0861d70f6e2b182b0f94db46293273beb1f795e /tests
parentFix logcontext leak in http pusher test (diff)
downloadsynapse-828f18bd8bbb9ab328b48de72f3d50482b6cceb5.tar.xz
Fix logcontext leak in test_url_preview
Diffstat (limited to '')
-rw-r--r--tests/rest/media/v1/test_url_preview.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rest/media/v1/test_url_preview.py b/tests/rest/media/v1/test_url_preview.py
index 86c813200a..c62f71b44a 100644
--- a/tests/rest/media/v1/test_url_preview.py
+++ b/tests/rest/media/v1/test_url_preview.py
@@ -20,6 +20,7 @@ from mock import Mock
 from twisted.internet.defer import Deferred
 
 from synapse.config.repository import MediaStorageProviderConfig
+from synapse.util.logcontext import make_deferred_yieldable
 from synapse.util.module_loader import load_module
 
 from tests import unittest
@@ -77,7 +78,7 @@ class URLPreviewTests(unittest.HomeserverTestCase):
             d = Deferred()
             d.addCallback(write_to)
             self.fetches.append((d, url))
-            return d
+            return make_deferred_yieldable(d)
 
         client = Mock()
         client.get_file = get_file