comparison tests/test-https.t @ 31029: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 636cf3f7620d
children f819aa9dbbf9
comparison
equal deleted inserted replaced
31028:636cf3f7620d 31029:161ab32b44a1
34 34
35 Test server address cannot be reused 35 Test server address cannot be reused
36 36
37 #if windows 37 #if windows
38 $ hg serve -p $HGPORT --certificate=$PRIV 2>&1 38 $ hg serve -p $HGPORT --certificate=$PRIV 2>&1
39 abort: cannot start server at ':$HGPORT': 39 abort: cannot start server at 'localhost:$HGPORT':
40 [255] 40 [255]
41 #else 41 #else
42 $ hg serve -p $HGPORT --certificate=$PRIV 2>&1 42 $ hg serve -p $HGPORT --certificate=$PRIV 2>&1
43 abort: cannot start server at ':$HGPORT': Address already in use 43 abort: cannot start server at 'localhost:$HGPORT': Address already in use
44 [255] 44 [255]
45 #endif 45 #endif
46 $ cd .. 46 $ cd ..
47 47
48 Our test cert is not signed by a trusted CA. It should fail to verify if 48 Our test cert is not signed by a trusted CA. It should fail to verify if