

























@@ -321,41 +321,6 @@ describe("gateway run option collisions", () => {
321321expect(secondOptions.startupStartedAt).toBe(2000);
322322});
323323324-it("uses the startup snapshot only for the first in-process gateway start", async () => {
325-runGatewayLoop.mockImplementationOnce(async ({ start }: { start: GatewayLoopStart }) => {
326-await start({ startupStartedAt: 1000 });
327-await start({ startupStartedAt: 2000 });
328-});
329-330-await runGatewayCli(["gateway", "run", "--allow-unconfigured"]);
331-332-expect(startGatewayServer).toHaveBeenCalledTimes(2);
333-expect(startGatewayServer).toHaveBeenNthCalledWith(
334-1,
335-18789,
336-expect.objectContaining({
337-startupStartedAt: 1000,
338-startupConfigSnapshotRead: {
339-snapshot: configState.snapshot,
340-},
341-}),
342-);
343-expect(startGatewayServer).toHaveBeenNthCalledWith(
344-2,
345-18789,
346-expect.not.objectContaining({
347-startupConfigSnapshotRead: expect.anything(),
348-}),
349-);
350-expect(startGatewayServer).toHaveBeenNthCalledWith(
351-2,
352-18789,
353-expect.objectContaining({
354-startupStartedAt: 2000,
355-}),
356-);
357-});
358-359324it("logs when first startup will build missing Control UI assets", async () => {
360325controlUiState.root = null;
361326此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。