Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix limit logic for EventsStream #7358

Merged
merged 6 commits into from
Apr 29, 2020
Merged

Commits on Apr 28, 2020

  1. 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.
    richvdh committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    dc3e7e1 View commit details
    Browse the repository at this point in the history
  2. 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.
    richvdh committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    13c40f8 View commit details
    Browse the repository at this point in the history
  3. 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.
    richvdh committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    1a69b43 View commit details
    Browse the repository at this point in the history
  4. changelog

    richvdh committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    295970a View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2020

  1. Move logic into get_all_updated_current_state_deltas

    It fits a bit better there.
    richvdh committed Apr 29, 2020
    Configuration menu
    Copy the full SHA
    e40939a View commit details
    Browse the repository at this point in the history
  2. reduce diff

    richvdh committed Apr 29, 2020
    Configuration menu
    Copy the full SHA
    e2180da View commit details
    Browse the repository at this point in the history