summary refs log tree commit diff
path: root/tests/rest/admin/test_admin.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-07-31 10:30:05 +0100
committerRichard van der Hoff <richard@matrix.org>2020-07-31 10:30:05 +0100
commit82fec809a5c8be0a19bf2ca14f66d8d041dafeda (patch)
tree44adeb288d4659413e626f50e46d716401298d2a /tests/rest/admin/test_admin.py
parentMerge branch 'release-v1.18.0' into matrix-org-hotfixes (diff)
parentAdd docs for undoing room shutdowns (#7998) (diff)
downloadsynapse-82fec809a5c8be0a19bf2ca14f66d8d041dafeda.tar.xz
Merge branch 'develop' into matrix-org-hotfixes
Diffstat (limited to 'tests/rest/admin/test_admin.py')
-rw-r--r--tests/rest/admin/test_admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rest/admin/test_admin.py b/tests/rest/admin/test_admin.py

index b1a4decced..0f1144fe1e 100644 --- a/tests/rest/admin/test_admin.py +++ b/tests/rest/admin/test_admin.py
@@ -178,7 +178,7 @@ class QuarantineMediaTestCase(unittest.HomeserverTestCase): self.fetches = [] - def get_file(destination, path, output_stream, args=None, max_size=None): + async def get_file(destination, path, output_stream, args=None, max_size=None): """ Returns tuple[int,dict,str,int] of file length, response headers, absolute URI, and response code. @@ -192,7 +192,7 @@ class QuarantineMediaTestCase(unittest.HomeserverTestCase): d = Deferred() d.addCallback(write_to) self.fetches.append((d, destination, path, args)) - return make_deferred_yieldable(d) + return await make_deferred_yieldable(d) client = Mock() client.get_file = get_file