























@@ -38,7 +38,6 @@ const hoisted = vi.hoisted(() => {
3838skipped: 0,
3939}));
4040const scheduleRestartAbortedMainSessionRecovery = vi.fn();
41-const shouldWakeFromRestartSentinel = vi.fn(() => false);
4241const scheduleRestartSentinelWake = vi.fn();
4342const refreshLatestUpdateRestartSentinel = vi.fn<
4443typeof import("./server-restart-sentinel.js").refreshLatestUpdateRestartSentinel
@@ -91,7 +90,6 @@ const hoisted = vi.hoisted(() => {
9190 markStartupOrphanedMainSessionsForRecovery,
9291 recoverStartupOrphanedMainSessions,
9392 scheduleRestartAbortedMainSessionRecovery,
94- shouldWakeFromRestartSentinel,
9593 scheduleRestartSentinelWake,
9694 refreshLatestUpdateRestartSentinel,
9795 getAcpRuntimeBackend,
@@ -177,7 +175,6 @@ vi.mock("../acp/runtime/registry.js", () => ({
177175vi.mock("./server-restart-sentinel.js", () => ({
178176refreshLatestUpdateRestartSentinel: hoisted.refreshLatestUpdateRestartSentinel,
179177scheduleRestartSentinelWake: hoisted.scheduleRestartSentinelWake,
180-shouldWakeFromRestartSentinel: hoisted.shouldWakeFromRestartSentinel,
181178}));
182179183180vi.mock("./server-startup-memory.js", () => ({
@@ -327,7 +324,6 @@ describe("startGatewayPostAttachRuntime", () => {
327324skipped: 0,
328325});
329326hoisted.scheduleRestartAbortedMainSessionRecovery.mockClear();
330-hoisted.shouldWakeFromRestartSentinel.mockReturnValue(false);
331327hoisted.scheduleRestartSentinelWake.mockClear();
332328hoisted.getAcpRuntimeBackend.mockReset();
333329hoisted.getAcpRuntimeBackend.mockReturnValue(null);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。