diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-11-15 22:47:54 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-11-16 18:24:00 +0000 |
commit | 129ae841e5aebb34a980dd7d118140d08b0ff81d (patch) | |
tree | 8b8208ce08d4e6aec002ef02e926ce71bc3ec97c /tests/replication | |
parent | Fix the URL in the URL preview tests (diff) | |
download | synapse-129ae841e5aebb34a980dd7d118140d08b0ff81d.tar.xz |
Make `make_request` actually render the request
remove the stubbing out of `request.process`, so that `requestReceived` also renders the request via the appropriate resource. Replace render() with a stub for now.
Diffstat (limited to 'tests/replication')
-rw-r--r-- | tests/replication/test_multi_media_repo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/replication/test_multi_media_repo.py b/tests/replication/test_multi_media_repo.py index a9ac4aeec1..48b574ccbe 100644 --- a/tests/replication/test_multi_media_repo.py +++ b/tests/replication/test_multi_media_repo.py @@ -68,15 +68,15 @@ class MediaRepoShardTestCase(BaseMultiWorkerStreamTestCase): the media which the caller should respond to. """ resource = hs.get_media_repository_resource().children[b"download"] - request, channel = make_request( + _, channel = make_request( self.reactor, FakeSite(resource), "GET", "/{}/{}".format(target, media_id), shorthand=False, access_token=self.access_token, + await_result=False, ) - request.render(resource) self.pump() clients = self.reactor.tcpClients |