From eed51b69d919c4e9dea0e82b0aa1ba16d05de8f7 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 01:12:02 +0000 Subject: [PATCH] Cover non-integer runtime port startup rejection Co-authored-by: Theo Browne --- apps/t3/src/runtimeApiServer.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index 6726ead552..ef737d3225 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -176,6 +176,15 @@ describe("runtimeApiServer", () => { ).rejects.toThrow("Invalid runtime port"); }); + it("rejects startup when runtime port is non-integer", async () => { + await expect( + startRuntimeApiServer({ + port: 4317.5, + launchCwd: process.cwd(), + }), + ).rejects.toThrow("Invalid runtime port"); + }); + it("allows runtime server close to be called multiple times", async () => { const server = await startRuntimeApiServer({ port: 0,