Skip to content

Commit 20880b9

Browse files
committed
test: bind the security check's CLI to 127.0.0.1
On the CI runner localhost resolves to ::1 first, so the CLI listened on IPv6 only while the checks addressed it as 127.0.0.1. The check now starts the CLI on 127.0.0.1.
1 parent 4824716 commit 20880b9

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎scripts/e2e-security.mjs‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,18 @@ async function cliChecks() {
14641464
const mcpToken = process.env.PANGULAR_MCP_TOKEN;
14651465
const child = spawn(
14661466
process.execPath,
1467-
[join(ROOT, 'bin.mjs'), 'dev', '--root', FIXTURE, '--port', String(PORTS.cli)],
1467+
// `--host 127.0.0.1`: the default `localhost` resolves to ::1 first on some
1468+
// runners, and the checks below address the server as 127.0.0.1.
1469+
[
1470+
join(ROOT, 'bin.mjs'),
1471+
'dev',
1472+
'--root',
1473+
FIXTURE,
1474+
'--port',
1475+
String(PORTS.cli),
1476+
'--host',
1477+
'127.0.0.1',
1478+
],
14681479
{
14691480
cwd: ROOT,
14701481
env: { ...process.env, HOME: home },

0 commit comments

Comments
 (0)