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

Add helper class for testing request cancellation #12630

Merged
merged 8 commits into from
May 10, 2022

Commits on May 4, 2022

  1. Expose the SynapseRequest from FakeChannel for testing disconnection

    In order to simulate a client disconnection in tests, we would like to
    call `Request.connectionLost`. Make the `Request` accessible from the
    `FakeChannel` returned by `make_request`.
    
    Signed-off-by: Sean Quah <seanq@element.io>
    Sean Quah committed May 4, 2022
    Configuration menu
    Copy the full SHA
    75e1c07 View commit details
    Browse the repository at this point in the history
  2. Add helper class for testing request cancellation

    Signed-off-by: Sean Quah <seanq@element.io>
    Sean Quah committed May 4, 2022
    Configuration menu
    Copy the full SHA
    f0b57d5 View commit details
    Browse the repository at this point in the history
  3. Add newsfile

    Signed-off-by: Sean Quah <seanq@element.io>
    Sean Quah committed May 4, 2022
    Configuration menu
    Copy the full SHA
    957474d View commit details
    Browse the repository at this point in the history

Commits on May 6, 2022

  1. Rename to EndpointCancellationTestCase to `EndpointCancellationTest…

    …HelperMixin`
    
    Signed-off-by: Sean Quah <seanq@element.io>
    Sean Quah committed May 6, 2022
    Configuration menu
    Copy the full SHA
    ccd0ab7 View commit details
    Browse the repository at this point in the history
  2. Add missing docstring for expected_body parameter

    Signed-off-by: Sean Quah <seanq@element.io>
    Sean Quah committed May 6, 2022
    Configuration menu
    Copy the full SHA
    390117a View commit details
    Browse the repository at this point in the history
  3. Improve assertion message when await_result=False is forgotten

    Signed-off-by: Sean Quah <seanq@element.io>
    Sean Quah committed May 6, 2022
    Configuration menu
    Copy the full SHA
    8c9b9f6 View commit details
    Browse the repository at this point in the history
  4. Update the changelog, since not all related PRs will land in the same…

    … release cycle
    Sean Quah committed May 6, 2022
    Configuration menu
    Copy the full SHA
    ee45caf View commit details
    Browse the repository at this point in the history
  5. Update the changelog, since not all related PRs will land in the same…

    … release cycle
    Sean Quah committed May 6, 2022
    Configuration menu
    Copy the full SHA
    01ad80b View commit details
    Browse the repository at this point in the history