summary refs log tree commit diff
path: root/tests/replication/tcp/streams/test_events.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Convert the message handler to async/await. (#7884)Patrick Cloke2020-07-221-32/+44
|
* Discard RDATA from already seen positions. (#7648)Patrick Cloke2020-06-151-15/+59
|
* Clean up replication unit tests. (#7490)Erik Johnston2020-05-131-1/+1
|
* Use `stream.current_token()` and remove `stream_positions()` (#7172)Erik Johnston2020-05-011-8/+16
| | | | We move the processing of typing and federation replication traffic into their handlers so that `Stream.current_token()` points to a valid token. This allows us to remove `get_streams_to_replicate()` and `stream_positions()`.
* Fix limit logic for EventsStream (#7358)Richard van der Hoff2020-04-291-0/+417
* Factor out functions for injecting events into database I want to add some more flexibility to the tools for injecting events into the database, and I don't want to clutter up HomeserverTestCase with them, so let's factor them out to a new file. * Rework TestReplicationDataHandler This wasn't very easy to work with: the mock wrapping was largely superfluous, and it's useful to be able to inspect the received rows, and clear out the received list. * Fix AssertionErrors being thrown by EventsStream Part of the problem was that there was an off-by-one error in the assertion, but also the limit logic was too simple. Fix it all up and add some tests.