test: fix daemon lifecycle test formatting

This commit is contained in:
Muhammed Mukhthar CM
2026-03-08 08:32:14 +00:00
parent 3e585b4312
commit e029079872

View File

@@ -36,17 +36,16 @@ 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 = const probeGateway = vi.fn<
vi.fn< (opts: {
(opts: { url: string;
url: string; auth?: { token?: string; password?: string };
auth?: { token?: string; password?: string }; timeoutMs: number;
timeoutMs: number; }) => Promise<{
}) => Promise<{ ok: boolean;
ok: boolean; configSnapshot: unknown;
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(() => ({}));