From 91882ad4b635b4d33cd99d6827380fbb7b9a3c23 Mon Sep 17 00:00:00 2001 From: kaeff Date: Thu, 13 Aug 2015 13:58:54 +0200 Subject: Bind only local interface for server when running functionals When running on Mac OSX with the system's firewall enabled, binding all interfaces prompts the firewall. The pop-up is very annoying, esp. since the tests don't block before you allowed the server to start. --- service/test/support/integration/app_test_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/test/support/integration/app_test_client.py') diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py index 2c1343ab..f508109d 100644 --- a/service/test/support/integration/app_test_client.py +++ b/service/test/support/integration/app_test_client.py @@ -107,10 +107,10 @@ class AppTestClient(object): d.addCallback(get_request_written_data) return d, request - def listenTCP(self, port=4567, host='0.0.0.0'): + def listenTCP(self, port=4567, host='127.0.0.1'): reactor.listenTCP(port, Site(self.resource), interface=host) - def run_on_a_thread(self, logfile='/tmp/app_test_client.log', port=4567, host='0.0.0.0'): + def run_on_a_thread(self, logfile='/tmp/app_test_client.log', port=4567, host='127.0.0.1'): def _start(): self.listenTCP(port, host) reactor.run() -- cgit v1.2.3