runtests: set web.address to localhost
Previously, "hg serve" will listen on "", which is not clear which interface it will actually listen on - it could listen on all interfaces (ex. 0.0.0.0 on IPv4). The run-tests.py script only checks "localhost" for available ports. So let's make it the same for "hg serve" by explicitly setting "web.address" to "localhost". This resolves some IPv6 EADDRINUSE errors.
Showing
- tests/run-tests.py 2 additions, 0 deletionstests/run-tests.py
- tests/test-basic.t 1 addition, 0 deletionstests/test-basic.t
- tests/test-commandserver.t 1 addition, 0 deletionstests/test-commandserver.t
- tests/test-http-bundle1.t 2 additions, 2 deletionstests/test-http-bundle1.t
- tests/test-http.t 1 addition, 1 deletiontests/test-http.t
- tests/test-https.t 2 additions, 2 deletionstests/test-https.t
Loading
Please register or sign in to comment