mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 20:21:13 +00:00
fix(check): restore gateway status tls mock typing
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { GatewayProbeResult } from "../gateway/probe.js";
|
||||
import type { GatewayBonjourBeacon } from "../infra/bonjour-discovery.js";
|
||||
import type { GatewayTlsRuntime } from "../infra/tls/gateway.js";
|
||||
import type { RuntimeEnv } from "../runtime.js";
|
||||
import { withEnvAsync } from "../test-utils/env.js";
|
||||
|
||||
@@ -38,11 +39,13 @@ const mocks = vi.hoisted(() => {
|
||||
stderr: [],
|
||||
stop: sshStop,
|
||||
})),
|
||||
loadGatewayTlsRuntime: vi.fn(async () => ({
|
||||
enabled: true,
|
||||
required: true,
|
||||
fingerprintSha256: "sha256:local-fingerprint",
|
||||
})),
|
||||
loadGatewayTlsRuntime: vi.fn(
|
||||
async (): Promise<GatewayTlsRuntime> => ({
|
||||
enabled: true,
|
||||
required: true,
|
||||
fingerprintSha256: "sha256:local-fingerprint",
|
||||
}),
|
||||
),
|
||||
probeGateway: vi.fn(async (opts: { url: string }): Promise<GatewayProbeResult> => {
|
||||
const { url } = opts;
|
||||
if (url.includes("127.0.0.1")) {
|
||||
|
||||
Reference in New Issue
Block a user