diff options
author | kaeff <hi@kaeff.net> | 2015-08-13 13:58:54 +0200 |
---|---|---|
committer | kaeff <hi@kaeff.net> | 2015-08-17 12:43:14 +0200 |
commit | 91882ad4b635b4d33cd99d6827380fbb7b9a3c23 (patch) | |
tree | 52154443fd5e0a261d9c213f998fb7f1be41ee37 /service/test/support/integration | |
parent | 2506629631a64f7c7851e648a74159f6ea2a44f8 (diff) |
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.
Diffstat (limited to 'service/test/support/integration')
-rw-r--r-- | service/test/support/integration/app_test_client.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |