test: fix main CI regressions · openclaw/openclaw@fe3f2be
steipete
·
2026-05-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -485,14 +485,16 @@ describe("speech-core native voice-note routing", () => {
|
485 | 485 | }); |
486 | 486 | |
487 | 487 | it("caps oversized voice model TTS timeouts before synthesis", async () => { |
488 | | -installSpeechProviders([createMockSpeechProvider("mock", { autoSelectOrder: 1 })]); |
| 488 | +installSpeechProviders([ |
| 489 | +createMockSpeechProvider("mock", { autoSelectOrder: 1, models: ["mock-tts"] }), |
| 490 | +]); |
489 | 491 | |
490 | 492 | const result = await synthesizeSpeech({ |
491 | 493 | text: "Use capped explicit timeout.", |
492 | 494 | cfg: { |
493 | 495 | agents: { |
494 | 496 | defaults: { |
495 | | -voiceModel: { primary: "mock", timeoutMs: Number.MAX_SAFE_INTEGER }, |
| 497 | +voiceModel: { primary: "mock/mock-tts", timeoutMs: Number.MAX_SAFE_INTEGER }, |
496 | 498 | }, |
497 | 499 | }, |
498 | 500 | messages: { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -41,18 +41,6 @@ const STRICT_LITERAL_STRUCTS = new Set([
|
41 | 41 | ]); |
42 | 42 | |
43 | 43 | const DEFAULTED_OPTIONAL_INIT_PARAMS: Record<string, Set<string>> = { |
44 | | -SessionOperationEvent: new Set(["agentId"]), |
45 | | -SessionsCompactionBranchParams: new Set(["agentId"]), |
46 | | -SessionsCompactionGetParams: new Set(["agentId"]), |
47 | | -SessionsCompactionListParams: new Set(["agentId"]), |
48 | | -SessionsCompactionRestoreParams: new Set(["agentId"]), |
49 | | -SessionsCompactParams: new Set(["agentId"]), |
50 | | -SessionsDeleteParams: new Set(["agentId"]), |
51 | | -SessionsMessagesSubscribeParams: new Set(["agentId"]), |
52 | | -SessionsMessagesUnsubscribeParams: new Set(["agentId"]), |
53 | | -SessionsPatchParams: new Set(["agentId"]), |
54 | | -SessionsResetParams: new Set(["agentId"]), |
55 | | -SessionsSendParams: new Set(["agentId"]), |
56 | 44 | SessionsAbortParams: new Set(["agentId"]), |
57 | 45 | SessionOperationEvent: new Set(["agentId"]), |
58 | 46 | SessionsUsageParams: new Set(["agentId", "agentScope"]), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。