diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-02-08 11:03:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 11:03:08 -0500 |
commit | d0e78af35e519ff76bd23e786007f3e7130d90f7 (patch) | |
tree | 5755ad619669784608934fbd74d29cc92eaa4bae /tests/replication/tcp | |
parent | Experimental support to include bundled aggregations in search results (MSC36... (diff) | |
download | synapse-d0e78af35e519ff76bd23e786007f3e7130d90f7.tar.xz |
Add missing type hints to synapse.replication. (#11938)
Diffstat (limited to 'tests/replication/tcp')
-rw-r--r-- | tests/replication/tcp/test_remote_server_up.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/replication/tcp/test_remote_server_up.py b/tests/replication/tcp/test_remote_server_up.py index 262c35cef3..545f11acd1 100644 --- a/tests/replication/tcp/test_remote_server_up.py +++ b/tests/replication/tcp/test_remote_server_up.py @@ -14,6 +14,7 @@ from typing import Tuple +from twisted.internet.address import IPv4Address from twisted.internet.interfaces import IProtocol from twisted.test.proto_helpers import StringTransport @@ -29,7 +30,7 @@ class RemoteServerUpTestCase(HomeserverTestCase): def _make_client(self) -> Tuple[IProtocol, StringTransport]: """Create a new direct TCP replication connection""" - proto = self.factory.buildProtocol(("127.0.0.1", 0)) + proto = self.factory.buildProtocol(IPv4Address("TCP", "127.0.0.1", 0)) transport = StringTransport() proto.makeConnection(transport) |