test-help-documentation: Bind vnu.jar to 127.0.0.1.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-06-28 17:33:25 -07:00 committed by Tim Abbott
parent e0522b6395
commit a1cf77ca54
2 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class BaseDocumentationSpider(scrapy.Spider):
if getattr(self, 'validate_html', False):
yield Request(
'http://localhost:9988/?out=json',
'http://127.0.0.1:9988/?out=json',
method='POST',
headers={'Content-Type': response.headers['Content-Type']},
body=response.body,

View File

@ -44,6 +44,7 @@ def vnu_servlet() -> Iterator[None]:
os.path.dirname(__file__),
'../node_modules/vnu-jar/build/dist/vnu.jar',
),
'-Dnu.validator.servlet.bind-address=127.0.0.1',
'nu.validator.servlet.Main',
'9988',
]) as proc: