Cover idempotent runtime server shutdown in integration tests

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 00:16:04 +00:00
1 parent 14fcd1acc4
commit cfd273e78f
1 file changed
+10
+10
View File
@@ -121,6 +121,16 @@ afterEach(async () => {
});
describe("runtimeApiServer", () => {
it("allows runtime server close to be called multiple times", async () => {
const server = await startRuntimeApiServer({
port: 0,
launchCwd: process.cwd(),
});
await expect(server.close()).resolves.toBeUndefined();
await expect(server.close()).resolves.toBeUndefined();
});
it("rejects empty auth token configuration", async () => {
await expect(
startRuntimeApiServer({