mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-24 08:19:49 +00:00
test: verify install and runtime messages
This commit is contained in:
@@ -258,9 +258,7 @@ describe("model override pipeline wiring", () => {
|
||||
|
||||
await expect(resultPromise).resolves.toEqual({ prependContext: "fast" });
|
||||
expect(logger.error).toHaveBeenCalledWith(
|
||||
expect.stringContaining(
|
||||
"[hooks] before_prompt_build handler from slow-plugin failed: timed out after 5ms",
|
||||
),
|
||||
"[hooks] before_prompt_build handler from slow-plugin failed: timed out after 5ms",
|
||||
);
|
||||
} finally {
|
||||
vi.useRealTimers();
|
||||
|
||||
@@ -378,7 +378,11 @@ describe("ensureApiKeyFromEnvOrPrompt", () => {
|
||||
expect(result).toBe("env-key");
|
||||
expectMinimaxEnvRefCredentialStored(setCredential);
|
||||
expect(note).toHaveBeenCalledWith(
|
||||
expect.stringContaining("Could not validate provider reference"),
|
||||
[
|
||||
"Could not validate provider reference filemain:/providers/minimax/apiKey.",
|
||||
"secrets.providers.filemain.path is not readable: /tmp/does-not-exist-secrets.json | ENOENT: no such file or directory, lstat '/tmp/does-not-exist-secrets.json' | secrets.providers.filemain.path is not readable: /tmp/does-not-exist-secrets.json | ENOENT: no such file or directory, lstat '/tmp/does-not-exist-secrets.json'",
|
||||
"Check your provider configuration and try again.",
|
||||
].join("\n"),
|
||||
"Reference check failed",
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user