fix(test-utils): hardcode ipv4 ip for localhost (#4998)

This commit is contained in:
Daniel Roe 2022-05-17 02:40:35 +01:00 committed by GitHub
parent bd80d27a49
commit cd37a21c2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ export async function startServer () {
const ctx = useTestContext()
await stopServer()
const port = await getRandomPort()
ctx.url = 'http://localhost:' + port
ctx.url = 'http://127.0.0.1:' + port
if (ctx.options.dev) {
const nuxiCLI = await kit.resolvePath('nuxi/cli')
ctx.serverProcess = execa(nuxiCLI, ['dev'], {