mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 20:05:46 -06:00
test(agents): use canonical empty auth store
This commit is contained in:
+1
-4
@@ -1477,10 +1477,7 @@ describe("runEmbeddedAgent auth profile rotation", () => {
|
||||
delete process.env.OPENAI_API_KEY;
|
||||
try {
|
||||
await withAgentWorkspace(async ({ agentDir, workspaceDir }) => {
|
||||
const authPath = path.join(agentDir, "auth-profiles.json");
|
||||
const authStatePath = path.join(agentDir, "auth-state.json");
|
||||
await fs.writeFile(authPath, JSON.stringify({ version: 1, profiles: {} }));
|
||||
await fs.writeFile(authStatePath, JSON.stringify({ version: 1, usageStats: {} }));
|
||||
saveAuthProfileStore({ version: 1, profiles: {}, usageStats: {} }, agentDir);
|
||||
|
||||
await expectFailoverError(
|
||||
runEmbeddedAgentInline({
|
||||
|
||||
Reference in New Issue
Block a user