[Python-modules-commits] [rpyc] 05/06: connect client and server IP in TestUdpRegistry
Carl Suster
arcresu-guest at moszumanska.debian.org
Thu Jan 12 06:00:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
arcresu-guest pushed a commit to branch master
in repository rpyc.
commit 3da75f581da2afbbc9de627d6edfb0cbf09789a6
Author: Carl Suster <carl at contraflo.ws>
Date: Mon Jan 9 19:19:08 2017 +1100
connect client and server IP in TestUdpRegistry
The client was never reaching the server since the former listened on
0.0.0.0 and the latter on 255.255.255.255. It is not clear why the tests
pass in upstream's CI.
Forwarded: https://github.com/tomerfiliba/rpyc/pull/210
---
tests/test_registry.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tests/test_registry.py b/tests/test_registry.py
index 1340250..9773660 100644
--- a/tests/test_registry.py
+++ b/tests/test_registry.py
@@ -63,11 +63,14 @@ class TestTcpRegistry(BaseRegistryTest, unittest.TestCase):
return TCPRegistryClient("localhost")
class TestUdpRegistry(BaseRegistryTest, unittest.TestCase):
+ ip = '0.0.0.0'
+
def _get_server(self):
- return UDPRegistryServer(pruning_timeout=PRUNING_TIMEOUT)
+ return UDPRegistryServer(pruning_timeout=PRUNING_TIMEOUT,
+ host=self.__class__.ip)
def _get_client(self):
- return UDPRegistryClient()
+ return UDPRegistryClient(ip=self.__class__.ip)
if __name__ == "__main__":
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/rpyc.git
More information about the Python-modules-commits
mailing list