First, update test-clonebundles.t which was failing since the introduction of
the $EADDRNOTAVAIL$ common pattern.
Also update two tests from 8695fbe17f7c with a more compact condition line.
hg-reviewers |
First, update test-clonebundles.t which was failing since the introduction of
the $EADDRNOTAVAIL$ common pattern.
Also update two tests from 8695fbe17f7c with a more compact condition line.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-clonebundles.t (2 lines) | |||
M | tests/test-http-bad-server.t (3 lines) | |||
M | tests/test-http-proxy.t (3 lines) |
(if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false") | (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false") | ||||
[255] | [255] | ||||
Server is not running aborts | Server is not running aborts | ||||
$ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest | $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest | ||||
$ hg clone http://localhost:$HGPORT server-not-runner | $ hg clone http://localhost:$HGPORT server-not-runner | ||||
applying clone bundle from http://localhost:$HGPORT1/bundle.hg | applying clone bundle from http://localhost:$HGPORT1/bundle.hg | ||||
error fetching bundle: (.* refused.*|Protocol not supported|(.* )?Cannot assign requested address) (re) | error fetching bundle: (.* refused.*|Protocol not supported|(.* )?\$EADDRNOTAVAIL\$) (re) | ||||
abort: error applying bundle | abort: error applying bundle | ||||
(if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false") | (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false") | ||||
[255] | [255] | ||||
Server returns 404 | Server returns 404 | ||||
$ "$PYTHON" $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid | $ "$PYTHON" $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid | ||||
$ cat http.pid >> $DAEMON_PIDS | $ cat http.pid >> $DAEMON_PIDS |
> EOF | > EOF | ||||
Failure to accept() socket should result in connection related error message | Failure to accept() socket should result in connection related error message | ||||
$ hg serve --config badserver.closebeforeaccept=true -p $HGPORT -d --pid-file=hg.pid | $ hg serve --config badserver.closebeforeaccept=true -p $HGPORT -d --pid-file=hg.pid | ||||
$ cat hg.pid > $DAEMON_PIDS | $ cat hg.pid > $DAEMON_PIDS | ||||
$ hg clone http://localhost:$HGPORT/ clone | $ hg clone http://localhost:$HGPORT/ clone | ||||
abort: error: $ECONNRESET$ (?) | abort: error: (\$ECONNRESET\$|\$EADDRNOTAVAIL\$) (re) | ||||
abort: error: $EADDRNOTAVAIL$ (?) | |||||
[255] | [255] | ||||
(The server exits on its own, but there is a race between that and starting a new server. | (The server exits on its own, but there is a race between that and starting a new server. | ||||
So ensure the process is dead.) | So ensure the process is dead.) | ||||
$ killdaemons.py $DAEMON_PIDS | $ killdaemons.py $DAEMON_PIDS | ||||
Failure immediately after accept() should yield connection related error message | Failure immediately after accept() should yield connection related error message |
new changesets 83180e7845de | new changesets 83180e7845de | ||||
updating to branch default | updating to branch default | ||||
1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
bad host:port for proxy ("Protocol not supported" can happen on | bad host:port for proxy ("Protocol not supported" can happen on | ||||
misconfigured hosts) | misconfigured hosts) | ||||
$ http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f | $ http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f | ||||
abort: error: (Connection refused|Protocol not supported|.* actively refused it) (re) (?) | abort: error: (Connection refused|Protocol not supported|.* actively refused it|\$EADDRNOTAVAIL\$) (re) | ||||
abort: error: $EADDRNOTAVAIL$ (?) | |||||
[255] | [255] | ||||
do not use the proxy if it is in the no list | do not use the proxy if it is in the no list | ||||
$ http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g | $ http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g | ||||
requesting all changes | requesting all changes | ||||
adding changesets | adding changesets | ||||
adding manifests | adding manifests |