From 35c0e7745f2fdfd687dc72e2c86c07875c7a7889 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 10 Feb 2026 07:05:28 +0000 Subject: [PATCH] fix(ci): use dynamic relay ports in agent-testability e2e tests The `agent-testability.spec.ts` tests were hardcoding the relay URL to `http://127.0.0.1:8878`, which caused `ECONNREFUSED` errors when running in parallel because the test fixture allocates dynamic ports to avoid collisions. This commit updates the tests to use the dynamic `httpUrl` provided by the relay fixture. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- tests/e2e/agent-testability.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/e2e/agent-testability.spec.ts b/tests/e2e/agent-testability.spec.ts index 4c379588..bb69b9a0 100644 --- a/tests/e2e/agent-testability.spec.ts +++ b/tests/e2e/agent-testability.spec.ts @@ -90,13 +90,15 @@ test.describe("Agent testability infrastructure", () => { }); // Verify via HTTP API - const resp = await fetch("http://127.0.0.1:8878/events"); + const httpUrl = (relay as any).httpUrl; + const resp = await fetch(`${httpUrl}/events`); const events = await resp.json(); expect(events.length).toBe(2); }); test("relay health endpoint works", async ({ relay }) => { - const resp = await fetch("http://127.0.0.1:8878/health"); + const httpUrl = (relay as any).httpUrl; + const resp = await fetch(`${httpUrl}/health`); const health = await resp.json(); expect(health.ok).toBe(true); expect(typeof health.eventCount).toBe("number");