synapse/tests
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
..
api Refactor get_user_by_id (#16316) 2023-09-14 12:46:30 +01:00
app Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
appservice Send the opentracing span information to appservices (#16227) 2023-09-06 15:19:17 -04:00
config Describe which rate limiter was hit in logs (#16135) 2023-08-30 00:39:39 +01:00
crypto Refactor storing of server keys (#16261) 2023-09-12 11:08:04 +01:00
events Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
federation Stop sending incorrect knock_state_events. (#16403) 2023-10-06 07:27:35 -04:00
handlers Fix type hint errors from Twisted trunk (#16526) 2023-10-23 14:28:05 -04:00
http Fix tests on Twisted trunk. (#16528) 2023-10-25 07:39:45 -04:00
logging Update ruff config (#16283) 2023-09-08 11:24:36 -04:00
media Handle content types with parameters. (#16440) 2023-10-11 07:50:34 -04:00
metrics Remove support for Python 3.7 (#15851) 2023-07-05 18:45:42 -05:00
module_api Convert user_get_threepids response to attrs. (#16468) 2023-10-11 20:08:11 -04:00
push Add the List-Unsubscribe header for notification emails. (#16274) 2023-09-11 09:49:48 -04:00
replication Fix tests on Twisted trunk. (#16528) 2023-10-25 07:39:45 -04:00
rest Apply join rate limiter outside the lineariser (#16441) 2023-10-06 17:31:52 +00:00
scripts Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
server_notices Bump mypy-zope & mypy. (#16188) 2023-08-29 10:38:56 -04:00
state Improve state types. (#16395) 2023-09-28 07:01:46 -04:00
storage Fix bug where a new writer advances their token too quickly (#16473) 2023-10-23 16:57:30 +01:00
test_utils Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
types Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
util Fix a bug where servers could be marked as up when they were failing (#16506) 2023-10-17 07:32:40 -04:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Fix tests on Twisted trunk. (#16528) 2023-10-25 07:39:45 -04:00
test_distributor.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_event_auth.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_federation.py Return an immutable value from get_latest_event_ids_in_room. (#16326) 2023-09-18 09:29:05 -04:00
test_mau.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_phone_home.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_rust.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_server.py Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
test_state.py Bump mypy-zope & mypy. (#16188) 2023-08-29 10:38:56 -04:00
test_terms_auth.py Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
test_test_utils.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_types.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_visibility.py Update ruff config (#16283) 2023-09-08 11:24:36 -04:00
unittest.py Fix type hint errors from Twisted trunk (#16526) 2023-10-23 14:28:05 -04:00
utils.py Modify StoreKeyFetcher to read from server_keys_json. (#15417) 2023-04-20 12:30:32 -04:00