fix(proxy): align managed proxy fixture settings · openclaw/openclaw@39c9fd8
vincentkoc
·
2026-06-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,6 +6,7 @@ import { tmpdir } from "node:os";
|
6 | 6 | import { join } from "node:path"; |
7 | 7 | import { afterEach, beforeEach, describe, expect, it } from "vitest"; |
8 | 8 | import { closeOpenClawStateDatabaseForTest } from "../state/openclaw-state-db.js"; |
| 9 | +import type { DebugProxySettings } from "./env.js"; |
9 | 10 | import { assertDebugProxyDirectUpstreamAllowed, startDebugProxyServer } from "./proxy-server.js"; |
10 | 11 | import { closeDebugProxyCaptureStore } from "./store.sqlite.js"; |
11 | 12 | |
@@ -28,7 +29,7 @@ async function cleanupTestDirs(): Promise<void> {
|
28 | 29 | await rm(root, { recursive: true, force: true }); |
29 | 30 | } |
30 | 31 | |
31 | | -async function makeSettings() { |
| 32 | +async function makeSettings(): Promise<DebugProxySettings> { |
32 | 33 | testRoot = await mkdtemp(join(tmpdir(), "openclaw-debug-proxy-managed-proxy-")); |
33 | 34 | const certDir = join(testRoot, "certs"); |
34 | 35 | await mkdir(certDir, { recursive: true }); |
@@ -38,6 +39,8 @@ async function makeSettings() {
|
38 | 39 | return { |
39 | 40 | enabled: true, |
40 | 41 | required: false, |
| 42 | +dbPath: join(testRoot, "capture.sqlite"), |
| 43 | +blobDir: join(testRoot, "blobs"), |
41 | 44 | certDir, |
42 | 45 | sessionId: "debug-proxy-managed-proxy-test", |
43 | 46 | sourceProcess: "test", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。