We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
localhost
1 parent fc26429 commit 65fd88bCopy full SHA for 65fd88b
test-utils/waitForUrls.js
@@ -6,7 +6,13 @@ const waitForUrls = async (...urls) => {
6
7
try {
8
return await waitOnAsync({
9
- resources: urls.map((url) => url.replace(/http(s?)\:/, 'http$1-get:')),
+ resources: urls.map((url) =>
10
+ url
11
+ .replace(/http(s?)\:/, 'http$1-get:')
12
+ // As of node 17, ipv6 is preferred, so explicitly use ipv4
13
+ // See https://github.com/jeffbski/wait-on/issues/133
14
+ .replace(/localhost/, '127.0.0.1'),
15
+ ),
16
headers: { accept: 'text/html, application/javascript' },
17
timeout,
18
// Log output of wait behaviour timing to allow
0 commit comments