mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:08:37 +00:00
style: format daemon lifecycle test
This commit is contained in:
@@ -36,16 +36,17 @@ const renderGatewayPortHealthDiagnostics = vi.fn(() => ["diag: unhealthy port"])
|
|||||||
const renderRestartDiagnostics = vi.fn(() => ["diag: unhealthy runtime"]);
|
const renderRestartDiagnostics = vi.fn(() => ["diag: unhealthy runtime"]);
|
||||||
const resolveGatewayPort = vi.fn(() => 18789);
|
const resolveGatewayPort = vi.fn(() => 18789);
|
||||||
const findGatewayPidsOnPortSync = vi.fn<(port: number) => number[]>(() => []);
|
const findGatewayPidsOnPortSync = vi.fn<(port: number) => number[]>(() => []);
|
||||||
const probeGateway = vi.fn<
|
const probeGateway =
|
||||||
(opts: {
|
vi.fn<
|
||||||
url: string;
|
(opts: {
|
||||||
auth?: { token?: string; password?: string };
|
url: string;
|
||||||
timeoutMs: number;
|
auth?: { token?: string; password?: string };
|
||||||
}) => Promise<{
|
timeoutMs: number;
|
||||||
ok: boolean;
|
}) => Promise<{
|
||||||
configSnapshot: unknown;
|
ok: boolean;
|
||||||
}>
|
configSnapshot: unknown;
|
||||||
>();
|
}>
|
||||||
|
>();
|
||||||
const isRestartEnabled = vi.fn<(config?: { commands?: unknown }) => boolean>(() => true);
|
const isRestartEnabled = vi.fn<(config?: { commands?: unknown }) => boolean>(() => true);
|
||||||
const loadConfig = vi.fn(() => ({}));
|
const loadConfig = vi.fn(() => ({}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user