diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index e4f7fecae6..143cdf9a8c 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -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({