mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-07 07:11:06 +00:00
test: trim provider usage auth normalization setup
This commit is contained in:
committed by
Peter Steinberger
parent
14ff2c30d1
commit
4b79ae7ad8
@@ -205,6 +205,9 @@ describe("resolveProviderAuths key normalization", () => {
|
||||
|
||||
beforeAll(async () => {
|
||||
suiteRoot = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-provider-auth-suite-"));
|
||||
({ resolveProviderAuths } = await import("./provider-usage.auth.js"));
|
||||
({ clearRuntimeAuthProfileStoreSnapshots } = await import("../agents/auth-profiles.js"));
|
||||
({ clearConfigCache, clearRuntimeConfigSnapshot } = await import("../config/config.js"));
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
@@ -213,11 +216,7 @@ describe("resolveProviderAuths key normalization", () => {
|
||||
suiteCase = 0;
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
vi.resetModules();
|
||||
({ resolveProviderAuths } = await import("./provider-usage.auth.js"));
|
||||
({ clearRuntimeAuthProfileStoreSnapshots } = await import("../agents/auth-profiles.js"));
|
||||
({ clearConfigCache, clearRuntimeConfigSnapshot } = await import("../config/config.js"));
|
||||
beforeEach(() => {
|
||||
clearRuntimeConfigSnapshot();
|
||||
clearConfigCache();
|
||||
clearRuntimeAuthProfileStoreSnapshots();
|
||||
|
||||
Reference in New Issue
Block a user