0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 07:13:49 +01:00
synapse/tests/http
Patrick Cloke e182dbb5b9
Fix tests on Twisted trunk. (#16528)
Twisted trunk makes a change to the `TLSMemoryBIOFactory` where
the underlying protocol is changed from `TLSMemoryBIOProtocol` to
`BufferingTLSTransport` to improve performance of TLS code (see
https://github.com/twisted/twisted/issues/11989).

In order to properly hook this code up in tests we need to pass the test
reactor's clock into `TLSMemoryBIOFactory` to avoid the global (trial)
reactor being used by default.

Twisted does something similar internally for tests:
157cd8e659/src/twisted/web/test/test_agent.py (L871-L874)
2023-10-25 07:39:45 -04:00
..
federation Fix tests on Twisted trunk. (#16528) 2023-10-25 07:39:45 -04:00
server Fix type hint errors from Twisted trunk (#16526) 2023-10-23 14:28:05 -04:00
__init__.py Fix tests on Twisted trunk. (#16528) 2023-10-25 07:39:45 -04:00
ca.crt Tests for SSL certs for federation connections 2019-06-10 16:14:20 +01:00
ca.key Tests for SSL certs for federation connections 2019-06-10 16:14:20 +01:00
server.key Tests for SSL certs for federation connections 2019-06-10 16:14:20 +01:00
test_additional_resource.py Properly typecheck types.http (#14988) 2023-02-07 00:20:04 +00:00
test_client.py Rename blacklist/whitelist internally. (#15620) 2023-05-19 12:25:25 +00:00
test_endpoint.py Properly typecheck types.http (#14988) 2023-02-07 00:20:04 +00:00
test_matrixfederationclient.py Fix type hint errors from Twisted trunk (#16526) 2023-10-23 14:28:05 -04:00
test_proxy.py Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
test_proxyagent.py Fix tests on Twisted trunk. (#16528) 2023-10-25 07:39:45 -04:00
test_servlet.py Properly typecheck types.http (#14988) 2023-02-07 00:20:04 +00:00
test_simple_client.py Rename blacklist/whitelist internally. (#15620) 2023-05-19 12:25:25 +00:00
test_site.py Properly typecheck types.http (#14988) 2023-02-07 00:20:04 +00:00