MatrixSynapse/tests
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
..
api Correctly ratelimit invites when creating a room (#9968) 2021-05-12 16:05:28 +02:00
app Split presence out of master (#9820) 2021-04-23 12:21:55 +01:00
appservice Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
config Remove redundant code to reload tls cert (#10054) 2021-05-27 10:34:24 +01:00
crypto Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
events Use a database table to hold the users that should have full presence sent to them, instead of something in-memory (#9823) 2021-05-18 14:13:45 +01:00
federation Merge pull request from GHSA-x345-32rc-8h85 2021-05-11 11:47:23 +02:00
handlers Always update AS last_pos, even on no events (#10107) 2021-06-07 15:42:05 +01:00
http Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00
logging Merge branch 'master' into develop 2021-04-20 14:55:16 +01:00
module_api Use a database table to hold the users that should have full presence sent to them, instead of something in-memory (#9823) 2021-05-18 14:13:45 +01:00
push Merge pull request from GHSA-x345-32rc-8h85 2021-05-11 11:47:23 +02:00
replication Use a database table to hold the users that should have full presence sent to them, instead of something in-memory (#9823) 2021-05-18 14:13:45 +01:00
rest r0.6.1 support: /rooms/:roomId/aliases endpoint (#9224) 2021-06-03 13:50:49 +01:00
scripts Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server_notices Revert "Leave out optional keys from /sync (#9919)" (#9940) 2021-05-06 15:06:35 +01:00
state Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
storage add a cache to have_seen_event (#9953) 2021-06-01 12:04:47 +01:00
test_utils Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
util Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Kill off `_PushHTTPChannel`. (#9878) 2021-04-23 18:40:57 +01:00
test_distributor.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_event_auth.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_federation.py Merge branch 'master' into develop 2021-04-20 14:55:16 +01:00
test_mau.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +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 Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_server.py Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00
test_state.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_terms_auth.py Use mock from the stdlib. (#9772) 2021-04-09 13:44:38 -04:00
test_test_utils.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_types.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_visibility.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
unittest.py Remove various bits of compatibility code for Python <3.6 (#9879) 2021-04-27 13:13:07 +01:00
utils.py Remove room and user invite ratelimits in default unit test config (#9871) 2021-04-23 13:37:48 +01:00