comparison tests/test-http-bundle1.t @ 31009: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
parents f3807a135e43
children 728d37353e1e
comparison
equal deleted inserted replaced
31008:636cf3f7620d 31009:161ab32b44a1
26 26
27 Test server address cannot be reused 27 Test server address cannot be reused
28 28
29 #if windows 29 #if windows
30 $ hg serve -p $HGPORT1 2>&1 30 $ hg serve -p $HGPORT1 2>&1
31 abort: cannot start server at ':$HGPORT1': * (glob) 31 abort: cannot start server at 'localhost:$HGPORT1': * (glob)
32 [255] 32 [255]
33 #else 33 #else
34 $ hg serve -p $HGPORT1 2>&1 34 $ hg serve -p $HGPORT1 2>&1
35 abort: cannot start server at ':$HGPORT1': Address already in use 35 abort: cannot start server at 'localhost:$HGPORT1': Address already in use
36 [255] 36 [255]
37 #endif 37 #endif
38 $ cd .. 38 $ cd ..
39 $ cat hg1.pid hg2.pid >> $DAEMON_PIDS 39 $ cat hg1.pid hg2.pid >> $DAEMON_PIDS
40 40