diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-11-26 03:45:50 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-26 03:45:50 +1100 |
commit | 9eebd46048d0b34767047b2156760a1467f19ae6 (patch) | |
tree | 1cd2d89c3eb04e04be784e942793c617bb4ff217 /tests | |
parent | Merge pull request #6392 from matrix-org/babolivier/fix-1623 (diff) | |
download | synapse-9eebd46048d0b34767047b2156760a1467f19ae6.tar.xz |
Improve the performance of structured logging (#6322)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/server.py b/tests/server.py index f878aeaada..2b7cf4242e 100644 --- a/tests/server.py +++ b/tests/server.py @@ -379,6 +379,7 @@ class FakeTransport(object): disconnecting = False disconnected = False + connected = True buffer = attr.ib(default=b"") producer = attr.ib(default=None) autoflush = attr.ib(default=True) @@ -402,6 +403,7 @@ class FakeTransport(object): "FakeTransport: Delaying disconnect until buffer is flushed" ) else: + self.connected = False self.disconnected = True def abortConnection(self): |