diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2022-11-16 15:25:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 15:25:35 +0000 |
commit | 618e4ab81b70e37bdb8e9224bd84fcfe4b15bdea (patch) | |
tree | ef808471ef6a1696a969a0a6191fe7fd95c9471e /tests/replication/_base.py | |
parent | Remove redundant types from comments. (#14412) (diff) | |
download | synapse-618e4ab81b70e37bdb8e9224bd84fcfe4b15bdea.tar.xz |
Fix an invalid comparison of `UserPresenceState` to `str` (#14393)
Diffstat (limited to 'tests/replication/_base.py')
-rw-r--r-- | tests/replication/_base.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/replication/_base.py b/tests/replication/_base.py index 121f3d8d65..3029a16dda 100644 --- a/tests/replication/_base.py +++ b/tests/replication/_base.py @@ -542,8 +542,13 @@ class FakeRedisPubSubProtocol(Protocol): self.send("OK") elif command == b"GET": self.send(None) + + # Connection keep-alives. + elif command == b"PING": + self.send("PONG") + else: - raise Exception("Unknown command") + raise Exception(f"Unknown command: {command}") def send(self, msg): """Send a message back to the client.""" |