test(app): fix e2e
This commit is contained in:
parent
bb710e9ea1
commit
e237f06c96
1 changed files with 3 additions and 3 deletions
|
|
@ -73,9 +73,9 @@ const serverEnv = {
|
||||||
|
|
||||||
const runnerEnv = {
|
const runnerEnv = {
|
||||||
...process.env,
|
...process.env,
|
||||||
PLAYWRIGHT_SERVER_HOST: "localhost",
|
PLAYWRIGHT_SERVER_HOST: "127.0.0.1",
|
||||||
PLAYWRIGHT_SERVER_PORT: String(serverPort),
|
PLAYWRIGHT_SERVER_PORT: String(serverPort),
|
||||||
VITE_OPENCODE_SERVER_HOST: "localhost",
|
VITE_OPENCODE_SERVER_HOST: "127.0.0.1",
|
||||||
VITE_OPENCODE_SERVER_PORT: String(serverPort),
|
VITE_OPENCODE_SERVER_PORT: String(serverPort),
|
||||||
PLAYWRIGHT_PORT: String(webPort),
|
PLAYWRIGHT_PORT: String(webPort),
|
||||||
} satisfies Record<string, string>
|
} satisfies Record<string, string>
|
||||||
|
|
@ -115,7 +115,7 @@ const server = Bun.spawn(
|
||||||
)
|
)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await waitForHealth(`http://localhost:${serverPort}/global/health`)
|
await waitForHealth(`http://127.0.0.1:${serverPort}/global/health`)
|
||||||
|
|
||||||
const runner = Bun.spawn(["bun", "test:e2e", ...extraArgs], {
|
const runner = Bun.spawn(["bun", "test:e2e", ...extraArgs], {
|
||||||
cwd: appDir,
|
cwd: appDir,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue