diff tests/test-hgweb-non-interactive.t @ 31008:636cf3f7620d

tests: use LOCALIP This patch replaces hardcoded 127.0.0.1 with $LOCALIP in all tests. Till now, the IPv6 series should make tests pass on common IPv6 systems where the local device has the address "::1" and the hostname "localhost" resolves to "::1".
author Jun Wu <quark@fb.com>
date Thu, 16 Feb 2017 09:38:52 -0800
parents 86db5cb55d46
children 75be14993fda
line wrap: on
line diff
--- a/tests/test-hgweb-non-interactive.t	Wed Feb 15 23:24:03 2017 -0800
+++ b/tests/test-hgweb-non-interactive.t	Thu Feb 16 09:38:52 2017 -0800
@@ -60,7 +60,7 @@
   >     'SCRIPT_NAME': '',
   >     'PATH_INFO': '',
   >     'QUERY_STRING': '',
-  >     'SERVER_NAME': '127.0.0.1',
+  >     'SERVER_NAME': '$LOCALIP',
   >     'SERVER_PORT': os.environ['HGPORT'],
   >     'SERVER_PROTOCOL': 'HTTP/1.0'
   > }