Mercurial > hg
changeset 40170:f7ff5b4fe745
tests: use baseurl instead of advertisedbaseurl
The distinction matters for e.g. hosts behind load balancers. But for
the test environment, it doesn't matter.
For whatever reason, advertisedbaseurl is resolving to
http://1.0.0.127.in-addr.arpa:$HGPORT on my MBP. This hostname fails
to resolve, causing the test to fail. No clue what's up with that
behavior.
Differential Revision: https://phab.mercurial-scm.org/D4973
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 11 Oct 2018 09:26:05 +0200 |
parents | 461583f2125b |
children | dac438b7346e |
files | tests/wireprotosimplecache.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/wireprotosimplecache.py Fri Oct 12 09:23:55 2018 -0400 +++ b/tests/wireprotosimplecache.py Thu Oct 11 09:26:05 2018 +0200 @@ -127,7 +127,7 @@ paths.append(b'simplecache') paths.append(self.key) - url = b'%s/%s' % (self.req.advertisedbaseurl, b'/'.join(paths)) + url = b'%s/%s' % (self.req.baseurl, b'/'.join(paths)) #url = b'http://example.com/%s' % self.key self.ui.log('simplecache', 'sending content redirect for %s to '