mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 17:41:37 +00:00
refactor: delete dead infra and config exports (#106019)
* refactor: delete dead infra and config exports * refactor: preserve live infra and config contracts * refactor(config): remove obsolete file-store lifecycle APIs * refactor(infra): finish current-main dead export cleanup
This commit is contained in:
committed by
GitHub
parent
8dd57279cd
commit
d1684f48a3
@@ -1,7 +1,9 @@
|
||||
// Daemon restart health tests cover health checks after daemon restart operations.
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { GatewayService } from "../../daemon/service.js";
|
||||
import type { PortListenerKind, PortUsage } from "../../infra/ports.js";
|
||||
import type { PortUsage } from "../../infra/ports.js";
|
||||
|
||||
type PortListenerKind = ReturnType<typeof import("../../infra/ports.js").classifyPortListener>;
|
||||
|
||||
const inspectPortUsage = vi.hoisted(() => vi.fn<(port: number) => Promise<PortUsage>>());
|
||||
const sleep = vi.hoisted(() => vi.fn(async (_ms: number) => {}));
|
||||
|
||||
@@ -5,13 +5,17 @@ import path from "node:path";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { StaleOpenClawUpdateLaunchdJob } from "../../daemon/launchd.js";
|
||||
import { createMockGatewayService } from "../../daemon/service.test-helpers.js";
|
||||
import type { PortConnections, PortListener, PortUsageStatus } from "../../infra/ports.js";
|
||||
import type { PortListener, PortUsageStatus } from "../../infra/ports.js";
|
||||
import type { GatewayRestartHandoff } from "../../infra/restart-handoff.js";
|
||||
import { captureEnv, deleteTestEnvValue, setTestEnvValue } from "../../test-utils/env.js";
|
||||
import { VERSION } from "../../version.js";
|
||||
import type { GatewayRestartSnapshot } from "./restart-health.js";
|
||||
import { gatherDaemonStatus } from "./status.gather.js";
|
||||
|
||||
type PortConnections = Awaited<
|
||||
ReturnType<typeof import("../../infra/ports.js").inspectPortConnections>
|
||||
>;
|
||||
|
||||
const callGatewayStatusProbe = vi.fn<
|
||||
(opts?: unknown) => Promise<{
|
||||
ok: boolean;
|
||||
|
||||
Reference in New Issue
Block a user