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 <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-10 07:05:28 +00:00
1 parent 4f193e28a4
commit 35c0e7745f
1 file changed
+4 -2
+4 -2
View File
@@ -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");