summary refs log tree commit diff
path: root/tests/rest/client/v1/utils.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-12-31 14:55:29 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-12-31 14:55:29 +0000
commit6ee9980843c446ed68cce3764c66985fc628136f (patch)
tree1da36c6b94e5cf5431537c43aa20cfe3c46ac0f2 /tests/rest/client/v1/utils.py
parentMerge commit 'f12589547' into anoa/dinsic_release_1_23_1 (diff)
parentMake `make_request` actually render the request (diff)
downloadsynapse-6ee9980843c446ed68cce3764c66985fc628136f.tar.xz
Merge commit '129ae841e' into anoa/dinsic_release_1_23_1
Diffstat (limited to 'tests/rest/client/v1/utils.py')
-rw-r--r--tests/rest/client/v1/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/rest/client/v1/utils.py b/tests/rest/client/v1/utils.py

index 900852f85b..040a92d6f0 100644 --- a/tests/rest/client/v1/utils.py +++ b/tests/rest/client/v1/utils.py
@@ -310,7 +310,7 @@ class RestHelper: """ image_length = len(image_data) path = "/_matrix/media/r0/upload?filename=%s" % (filename,) - request, channel = make_request( + _, channel = make_request( self.hs.get_reactor(), FakeSite(resource), "POST", @@ -319,8 +319,6 @@ class RestHelper: access_token=tok, custom_headers=[(b"Content-Length", str(image_length))], ) - request.render(resource) - self.hs.get_reactor().pump([100]) assert channel.code == expect_code, "Expected: %d, got: %d, resp: %r" % ( expect_code,