Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/drfed/src/login.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import process from "node:process";
import { it } from "node:test";
import { fileURLToPath } from "node:url";

const serverTimeout = 30_000;
const requestTimeout = 5_000;
const binary = fileURLToPath(
new URL("../bin/drfed-server.mjs", import.meta.url),
Expand Down Expand Up @@ -55,9 +54,9 @@ it("normalizes CLI login origins and preserves the allowlist", async () => {
"--login-origin=http://[::1]:3000",
],
{
env: { PATH: process.env.PATH ?? "" },
timeout: serverTimeout,
timeout: 120_000,
killSignal: "SIGKILL",
env: { PATH: process.env.PATH ?? "" },
stdio: ["ignore", "pipe", "pipe"],
},
);
Expand All @@ -75,7 +74,10 @@ it("normalizes CLI login origins and preserves the allowlist", async () => {
child.once("error", ready.reject);
child.once("close", (code, signal) => {
ready.reject(
new Error(`CLI exited before listening (${code}, ${signal}): ${stderr}`),
new Error(
`CLI exited before listening (${code}, ${signal})\n` +
`stdout:\n${stdout}\nstderr:\n${stderr}`,
),
);
closed.resolve();
});
Expand Down
Loading