summary refs log tree commit diff
path: root/tests/server.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2019-11-26 03:45:50 +1100
committerGitHub <noreply@github.com>2019-11-26 03:45:50 +1100
commit9eebd46048d0b34767047b2156760a1467f19ae6 (patch)
tree1cd2d89c3eb04e04be784e942793c617bb4ff217 /tests/server.py
parentMerge pull request #6392 from matrix-org/babolivier/fix-1623 (diff)
downloadsynapse-9eebd46048d0b34767047b2156760a1467f19ae6.tar.xz
Improve the performance of structured logging (#6322)
Diffstat (limited to 'tests/server.py')
-rw-r--r--tests/server.py2
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):