mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 22:04:31 +00:00
fix(agents): land #31007 from @HOYALIM
Co-authored-by: Ho Lim <subhoya@gmail.com>
This commit is contained in:
@@ -461,6 +461,11 @@ describe("classifyFailoverReason", () => {
|
||||
expect(classifyFailoverReason("invalid api key")).toBe("auth");
|
||||
expect(classifyFailoverReason("no credentials found")).toBe("auth");
|
||||
expect(classifyFailoverReason("no api key found")).toBe("auth");
|
||||
expect(
|
||||
classifyFailoverReason(
|
||||
'No API key found for provider "openai". Auth store: /tmp/openclaw-agent-abc/auth-profiles.json (agentDir: /tmp/openclaw-agent-abc).',
|
||||
),
|
||||
).toBe("auth");
|
||||
expect(classifyFailoverReason("You have insufficient permissions for this operation.")).toBe(
|
||||
"auth",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user