Cover non-integer runtime port startup rejection

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 01:12:02 +00:00
1 parent c0becc4431
commit eed51b69d9
1 file changed
+9
+9
View File
@@ -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,