From 7bb2d2030369a1141eb591d4f154d7e193c623e8 Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 12 May 2026 11:04:54 +0100 Subject: [PATCH] test: remove duplicate gateway startup case --- .../gateway-cli/run.option-collisions.test.ts | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/src/cli/gateway-cli/run.option-collisions.test.ts b/src/cli/gateway-cli/run.option-collisions.test.ts index 3c9f3ba543f..661572e9c39 100644 --- a/src/cli/gateway-cli/run.option-collisions.test.ts +++ b/src/cli/gateway-cli/run.option-collisions.test.ts @@ -321,41 +321,6 @@ describe("gateway run option collisions", () => { expect(secondOptions.startupStartedAt).toBe(2000); }); - it("uses the startup snapshot only for the first in-process gateway start", async () => { - runGatewayLoop.mockImplementationOnce(async ({ start }: { start: GatewayLoopStart }) => { - await start({ startupStartedAt: 1000 }); - await start({ startupStartedAt: 2000 }); - }); - - await runGatewayCli(["gateway", "run", "--allow-unconfigured"]); - - expect(startGatewayServer).toHaveBeenCalledTimes(2); - expect(startGatewayServer).toHaveBeenNthCalledWith( - 1, - 18789, - expect.objectContaining({ - startupStartedAt: 1000, - startupConfigSnapshotRead: { - snapshot: configState.snapshot, - }, - }), - ); - expect(startGatewayServer).toHaveBeenNthCalledWith( - 2, - 18789, - expect.not.objectContaining({ - startupConfigSnapshotRead: expect.anything(), - }), - ); - expect(startGatewayServer).toHaveBeenNthCalledWith( - 2, - 18789, - expect.objectContaining({ - startupStartedAt: 2000, - }), - ); - }); - it("logs when first startup will build missing Control UI assets", async () => { controlUiState.root = null;