# HG changeset patch # User Gregory Szorc # Date 2018-10-11 07:26:05 # Node ID f7ff5b4fe745369f24ac47fd0d758a57683b7557 # Parent 461583f2125baa002fc07187552242bb1586506a 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 diff --git a/tests/wireprotosimplecache.py b/tests/wireprotosimplecache.py --- a/tests/wireprotosimplecache.py +++ b/tests/wireprotosimplecache.py @@ -127,7 +127,7 @@ class memorycacher(object): 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 '