mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix more logcontext leaks in tests (#4209)
This commit is contained in:
parent
de8772a655
commit
80527b568d
1
changelog.d/4209.misc
Normal file
1
changelog.d/4209.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix logcontext leaks in EmailPusher and in tests
|
@ -30,6 +30,7 @@ from synapse.rest.media.v1._base import FileInfo
|
|||||||
from synapse.rest.media.v1.filepath import MediaFilePaths
|
from synapse.rest.media.v1.filepath import MediaFilePaths
|
||||||
from synapse.rest.media.v1.media_storage import MediaStorage
|
from synapse.rest.media.v1.media_storage import MediaStorage
|
||||||
from synapse.rest.media.v1.storage_provider import FileStorageProviderBackend
|
from synapse.rest.media.v1.storage_provider import FileStorageProviderBackend
|
||||||
|
from synapse.util.logcontext import make_deferred_yieldable
|
||||||
from synapse.util.module_loader import load_module
|
from synapse.util.module_loader import load_module
|
||||||
|
|
||||||
from tests import unittest
|
from tests import unittest
|
||||||
@ -113,7 +114,7 @@ class MediaRepoTests(unittest.HomeserverTestCase):
|
|||||||
d = Deferred()
|
d = Deferred()
|
||||||
d.addCallback(write_to)
|
d.addCallback(write_to)
|
||||||
self.fetches.append((d, destination, path, args))
|
self.fetches.append((d, destination, path, args))
|
||||||
return d
|
return make_deferred_yieldable(d)
|
||||||
|
|
||||||
client = Mock()
|
client = Mock()
|
||||||
client.get_file = get_file
|
client.get_file = get_file
|
||||||
|
Loading…
Reference in New Issue
Block a user