MatrixSynapse/tests/handlers
14mRh4X0r 8942e23a69
Always update AS last_pos, even on no events (#10107)
Fixes #1834.

`get_new_events_for_appservice` internally calls `get_events_as_list`, which will filter out any rejected events. If all returned events are filtered out, `_notify_interested_services` will return without updating the last handled stream position. If there are 100 consecutive such events, processing will halt altogether.

Breaking the loop is now done by checking whether we're up-to-date with `current_max` in the loop condition, instead of relying on an empty `events` list.


Signed-off-by: Willem Mulder <14mRh4X0r@gmail.com>
2021-06-07 15:42:05 +01:00
..
__init__.py
oidc_test_key.p8
oidc_test_key.pub.pem
test_admin.py
test_appservice.py Always update AS last_pos, even on no events (#10107) 2021-06-07 15:42:05 +01:00
test_auth.py Change the format of access tokens away from macaroons (#5588) 2021-05-12 15:04:51 +01:00
test_cas.py
test_device.py
test_directory.py
test_e2e_keys.py
test_e2e_room_keys.py
test_federation.py
test_message.py
test_oidc.py
test_password_providers.py
test_presence.py Add a test for update_presence (#10033) 2021-05-21 17:29:14 +01:00
test_profile.py
test_register.py Change the format of access tokens away from macaroons (#5588) 2021-05-12 15:04:51 +01:00
test_saml.py
test_space_summary.py Sort child events according to MSC1772 for the spaces summary API. (#9954) 2021-05-11 12:57:39 -04:00
test_stats.py
test_sync.py
test_typing.py Don't hammer the database for destination retry timings every ~5mins (#10036) 2021-05-21 17:57:08 +01:00
test_user_directory.py