forked-synapse/tests/handlers
Richard van der Hoff a139420a3c
Fix races in room stats (and other) updates. (#6187)
Hopefully this will fix the occasional failures we were seeing in the room directory.

The problem was that events are not necessarily persisted (and `current_state_delta_stream` updated) in the same order as their stream_id. So for instance current_state_delta 9 might be persisted *before* current_state_delta 8. Then, when the room stats saw stream_id 9, it assumed it had done everything up to 9, and never came back to do stream_id 8.

We can solve this easily by only processing up to the stream_id where we know all events have been persisted.
2019-10-10 11:29:01 +01:00
..
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
test_admin.py Fixup from review comments. 2019-07-04 11:41:06 +01:00
test_appservice.py Run black. 2018-08-10 23:54:09 +10:00
test_auth.py Implement access token expiry (#5660) 2019-07-12 17:26:02 +01:00
test_device.py Fix tests on postgresql (#3740) 2018-09-04 02:21:48 +10:00
test_directory.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
test_e2e_keys.py Run tests under PostgreSQL (#3423) 2018-08-13 16:47:46 +10:00
test_e2e_room_keys.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
test_federation.py Lint (again) 2019-10-03 11:30:43 +01:00
test_presence.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
test_profile.py Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
test_register.py Only count real users when checking for auto-creation of auto-join room 2019-09-09 14:48:08 +03:00
test_stats.py Fix and refactor room and user stats (#5971) 2019-09-04 13:04:27 +01:00
test_sync.py rename error code 2018-08-18 14:39:45 +01:00
test_typing.py Fix races in room stats (and other) updates. (#6187) 2019-10-10 11:29:01 +01:00
test_user_directory.py Remove access-token support from RegistrationStore.register (#5642) 2019-07-10 16:26:49 +01:00