anonymousland-synapse/tests
Sean Quah 7ff22d6da4
Fix LruCache corruption bug with a size_callback that can return 0 (#11454)
When all entries in an `LruCache` have a size of 0 according to the
provided `size_callback`, and `drop_from_cache` is called on a cache
node, the node would be unlinked from the LRU linked list but remain in
the cache dictionary. An assertion would be later be tripped due to the
inconsistency.

Avoid unintentionally calling `__len__` and use a strict `is None`
check instead when unwrapping the weak reference.
2021-11-30 16:28:02 +00:00
..
api Support filtering by relations per MSC3440 (#11236) 2021-11-09 08:10:58 -05:00
app Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
appservice Fix errors in Synapse logs from unit tests. (#10939) 2021-09-30 11:03:29 -04:00
config Add missing type hints to config base classes (#11377) 2021-11-23 15:21:19 +00:00
crypto Fix perspectives requests for multiple keys for the same server (#11440) 2021-11-29 13:15:36 +00:00
events Strip "join_authorised_via_users_server" from join events which do not need it. (#10933) 2021-10-01 11:39:17 -04:00
federation Add missing copyright header. (#11460) 2021-11-30 13:23:53 +00:00
handlers Support the stable /hierarchy endpoint from MSC2946 (#11329) 2021-11-29 14:32:20 -05:00
http Prevent the media store from writing outside of the configured directory 2021-11-19 13:39:15 +00:00
logging Include exception in json logging (#11028) 2021-10-08 13:08:25 +02:00
module_api Remove a debug statement from tests. (#11239) 2021-11-03 13:11:16 +00:00
push Make background updates controllable via a plugin (#11306) 2021-11-29 17:57:06 +01:00
replication Add type hints to synapse/storage/databases/main/events_worker.py (#11411) 2021-11-26 18:41:31 +00:00
rest Remove unnecessary json.dumps from tests.rest.admin (#11461) 2021-11-30 14:51:04 +00:00
scripts Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server_notices Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
state Update the MSC3083 support to verify if joins are from an authorized server. (#10254) 2021-07-26 12:17:00 -04:00
storage Make background updates controllable via a plugin (#11306) 2021-11-29 17:57:06 +01:00
test_utils Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
util Fix LruCache corruption bug with a size_callback that can return 0 (#11454) 2021-11-30 16:28:02 +00:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Misc typing fixes for tests, part 2 of N (#11330) 2021-11-16 10:41:35 +00:00
test_distributor.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
test_federation.py Remove redundant parameters on _check_event_auth (#11292) 2021-11-10 14:16:06 +00:00
test_mau.py Revert change to counting of deactivated users towards the monthly active users limit (#11127) 2021-10-20 11:05:29 +01:00
test_metrics.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_phone_home.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_preview.py Fix URL preview errors when previewing XML documents. (#11196) 2021-10-27 14:48:02 +00:00
test_server.py Add reactor to SynapseRequest and fix up types. (#10868) 2021-09-24 11:01:25 +01:00
test_state.py Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
test_terms_auth.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_test_utils.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_types.py [pyupgrade] tests/ (#10347) 2021-07-13 11:43:15 +01:00
test_visibility.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
unittest.py Make background updates controllable via a plugin (#11306) 2021-11-29 17:57:06 +01:00
utils.py Remove code invalidated by deprecated config flag 'trust_identity_servers_for_password_resets' (#11395) 2021-11-23 06:46:40 -08:00