test(agents): drop unused oauth store helper · openclaw/openclaw@c784f64
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,6 @@ import { closeOpenClawAgentDatabasesForTest } from "../../state/openclaw-agent-d
|
10 | 10 | import { setTestEnvValue } from "../../test-utils/env.js"; |
11 | 11 | import type { resolveApiKeyForProfile } from "./oauth.js"; |
12 | 12 | import { loadPersistedAuthProfileStore } from "./persisted.js"; |
13 | | -import { saveAuthProfileStore } from "./store.js"; |
14 | 13 | import type { AuthProfileStore, OAuthCredential } from "./types.js"; |
15 | 14 | |
16 | 15 | /** Environment keys OAuth tests override while creating isolated state roots. */ |
@@ -88,14 +87,6 @@ export async function removeOAuthTestTempRoot(tempRoot: string): Promise<void> {
|
88 | 87 | } |
89 | 88 | } |
90 | 89 | |
91 | | -/** Persist an auth profile store without external auth filtering/sync. */ |
92 | | -export function writeAuthProfileStoreForTest(agentDir: string, store: AuthProfileStore): void { |
93 | | -saveAuthProfileStore(store, agentDir, { |
94 | | -filterExternalAuthProfiles: false, |
95 | | -syncExternalCli: false, |
96 | | -}); |
97 | | -} |
98 | | - |
99 | 90 | /** Read a persisted auth profile store, falling back to an empty store. */ |
100 | 91 | export function readAuthProfileStoreForTest(agentDir: string): AuthProfileStore { |
101 | 92 | return loadPersistedAuthProfileStore(agentDir) ?? { version: 1, profiles: {} }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。