Skip to content
Snippets Groups Projects
  1. Mar 16, 2021
  2. Feb 16, 2021
  3. Jan 28, 2021
  4. Jan 07, 2021
  5. Dec 18, 2020
  6. Dec 15, 2020
  7. Dec 02, 2020
  8. Nov 25, 2020
  9. Nov 16, 2020
  10. Nov 15, 2020
  11. Nov 05, 2020
  12. Oct 30, 2020
  13. Oct 22, 2020
  14. Oct 14, 2020
  15. Oct 13, 2020
  16. Oct 05, 2020
  17. Oct 02, 2020
  18. Sep 28, 2020
  19. Sep 18, 2020
  20. Sep 10, 2020
  21. Sep 04, 2020
  22. Aug 14, 2020
  23. Aug 06, 2020
  24. Aug 05, 2020
  25. Jul 22, 2020
  26. Jun 16, 2020
    • Richard van der Hoff's avatar
      Create a ListenerConfig object (#7681) · 03619324
      Richard van der Hoff authored
      This ended up being a bit more invasive than I'd hoped for (not helped by
      generic_worker duplicating some of the code from homeserver), but hopefully
      it's an improvement.
      
      The idea is that, rather than storing unstructured `dict`s in the config for
      the listener configurations, we instead parse it into a structured
      `ListenerConfig` object.
      Unverified
      03619324
  27. Apr 29, 2020
    • Richard van der Hoff's avatar
      Fix limit logic for EventsStream (#7358) · c2e1a211
      Richard van der Hoff authored
      * 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.
      Unverified
      c2e1a211
  28. Mar 31, 2020
  29. Mar 27, 2020
  30. Mar 24, 2020
    • Richard van der Hoff's avatar
      Remove spurious "name" parameter to `default_config` · 28d9d6e8
      Richard van der Hoff authored
      this is never set to anything other than "test", and is a source of unnecessary
      boilerplate.
      28d9d6e8
    • Richard van der Hoff's avatar
      Clean up some LoggingContext stuff (#7120) · 39230d21
      Richard van der Hoff authored
      * Pull Sentinel out of LoggingContext
      
      ... and drop a few unnecessary references to it
      
      * Factor out LoggingContext.current_context
      
      move `current_context` and `set_context` out to top-level functions.
      
      Mostly this means that I can more easily trace what's actually referring to
      LoggingContext, but I think it's generally neater.
      
      * move copy-to-parent into `stop`
      
      this really just makes `start` and `stop` more symetric. It also means that it
      behaves correctly if you manually `set_log_context` rather than using the
      context manager.
      
      * Replace `LoggingContext.alive` with `finished`
      
      Turn `alive` into `finished` and make it a bit better defined.
      Unverified
      39230d21
  31. Feb 18, 2020
Loading