diff tests/test-commandserver.t @ 31788:161ab32b44a1

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.
author Jun Wu <quark@fb.com>
date Thu, 16 Feb 2017 00:13:29 -0800 (2017-02-16)
parents f07ca071a058
children 09ec648cd2a9
line wrap: on
line diff
--- a/tests/test-commandserver.t
+++ b/tests/test-commandserver.t
@@ -199,6 +199,7 @@
   ui.usehttp2=true (?)
   ui.foo=bar
   ui.nontty=true
+  web.address=localhost
   web.ipv6=True (?)
   *** runcommand init foo
   *** runcommand -R foo showconfig ui defaults