mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 03:31:54 +00:00
Fix logcontext leak in http pusher test
This commit is contained in:
parent
884a561447
commit
a267c2e3ed
@ -18,6 +18,7 @@ from mock import Mock
|
|||||||
from twisted.internet.defer import Deferred
|
from twisted.internet.defer import Deferred
|
||||||
|
|
||||||
from synapse.rest.client.v1 import admin, login, room
|
from synapse.rest.client.v1 import admin, login, room
|
||||||
|
from synapse.util.logcontext import make_deferred_yieldable
|
||||||
|
|
||||||
from tests.unittest import HomeserverTestCase
|
from tests.unittest import HomeserverTestCase
|
||||||
|
|
||||||
@ -47,7 +48,7 @@ class HTTPPusherTests(HomeserverTestCase):
|
|||||||
def post_json_get_json(url, body):
|
def post_json_get_json(url, body):
|
||||||
d = Deferred()
|
d = Deferred()
|
||||||
self.push_attempts.append((d, url, body))
|
self.push_attempts.append((d, url, body))
|
||||||
return d
|
return make_deferred_yieldable(d)
|
||||||
|
|
||||||
m.post_json_get_json = post_json_get_json
|
m.post_json_get_json = post_json_get_json
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user