mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 18:54:13 -04:00
Add reactor to SynapseRequest
and fix up types. (#10868)
This commit is contained in:
parent
fa74536384
commit
50022cff96
24 changed files with 123 additions and 82 deletions
|
@ -152,7 +152,8 @@ class TerseJsonTestCase(LoggerCleanupMixin, TestCase):
|
|||
site = Mock(spec=["site_tag", "server_version_string", "getResourceFor"])
|
||||
site.site_tag = "test-site"
|
||||
site.server_version_string = "Server v1"
|
||||
request = SynapseRequest(FakeChannel(site, None))
|
||||
site.reactor = Mock()
|
||||
request = SynapseRequest(FakeChannel(site, None), site)
|
||||
# Call requestReceived to finish instantiating the object.
|
||||
request.content = BytesIO()
|
||||
# Partially skip some of the internal processing of SynapseRequest.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue