diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-04-23 18:40:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 18:40:57 +0100 |
commit | 84936e22648d3c9f6b76028b08c33f0267f5e3a0 (patch) | |
tree | 56a17355fa740e7518b4f702190ef2d84c5f760f /tests/server.py | |
parent | Allow OIDC cookies to work on non-root public baseurls (#9726) (diff) | |
download | synapse-84936e22648d3c9f6b76028b08c33f0267f5e3a0.tar.xz |
Kill off `_PushHTTPChannel`. (#9878)
First of all, a fixup to `FakeChannel` which is needed to make it work with the default HTTP channel implementation. Secondly, it looks like we no longer need `_PushHTTPChannel`, because as of #8013, the producer that gets attached to the `HTTPChannel` is now an `IPushProducer`. This is good, because it means we can remove a whole load of test-specific boilerplate which causes variation between tests and production.
Diffstat (limited to '')
-rw-r--r-- | tests/server.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/server.py b/tests/server.py index b535a5d886..9df8cda24f 100644 --- a/tests/server.py +++ b/tests/server.py @@ -603,12 +603,6 @@ class FakeTransport: if self.disconnected: return - if not hasattr(self.other, "transport"): - # the other has no transport yet; reschedule - if self.autoflush: - self._reactor.callLater(0.0, self.flush) - return - if maxbytes is not None: to_write = self.buffer[:maxbytes] else: |