fix(ci): update test helper expectations · openclaw/openclaw@fd61b1b
vincentkoc
·
2026-06-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2629,15 +2629,17 @@ describe("createTelegramBot", () => {
|
2629 | 2629 | headers: { "content-type": "image/png" }, |
2630 | 2630 | }), |
2631 | 2631 | ); |
| 2632 | +const runtimeLog = vi.fn(); |
2632 | 2633 | const runtimeError = vi.fn(); |
| 2634 | +const runtimeExit = vi.fn(); |
2633 | 2635 | const ssrfMock = mockPinnedHostnameResolution(); |
2634 | 2636 | |
2635 | 2637 | try { |
2636 | 2638 | createTelegramBot({ |
2637 | 2639 | token: "tok", |
2638 | 2640 | config: startupConfig, |
2639 | 2641 | ...(optionGroupAllowFrom ? { groupAllowFrom: optionGroupAllowFrom } : {}), |
2640 | | -runtime: { error: runtimeError }, |
| 2642 | +runtime: { log: runtimeLog, error: runtimeError, exit: runtimeExit }, |
2641 | 2643 | telegramTransport: { |
2642 | 2644 | fetch: mediaFetch as typeof fetch, |
2643 | 2645 | sourceFetch: mediaFetch as typeof fetch, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -887,7 +887,10 @@ describe("test-projects args", () => {
|
887 | 887 | { |
888 | 888 | config: "test/vitest/vitest.agents.config.ts", |
889 | 889 | forwardedArgs: [], |
890 | | -includePatterns: ["src/agents/models-config.file-mode.test.ts"], |
| 890 | +includePatterns: [ |
| 891 | +"src/agents/models-config.file-mode.test.ts", |
| 892 | +"src/agents/sandbox/ssh.test.ts", |
| 893 | +], |
891 | 894 | watchMode: false, |
892 | 895 | }, |
893 | 896 | { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。