mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-03 22:34:05 +00:00
test: fix main CI regressions
This commit is contained in:
@@ -485,14 +485,16 @@ describe("speech-core native voice-note routing", () => {
|
||||
});
|
||||
|
||||
it("caps oversized voice model TTS timeouts before synthesis", async () => {
|
||||
installSpeechProviders([createMockSpeechProvider("mock", { autoSelectOrder: 1 })]);
|
||||
installSpeechProviders([
|
||||
createMockSpeechProvider("mock", { autoSelectOrder: 1, models: ["mock-tts"] }),
|
||||
]);
|
||||
|
||||
const result = await synthesizeSpeech({
|
||||
text: "Use capped explicit timeout.",
|
||||
cfg: {
|
||||
agents: {
|
||||
defaults: {
|
||||
voiceModel: { primary: "mock", timeoutMs: Number.MAX_SAFE_INTEGER },
|
||||
voiceModel: { primary: "mock/mock-tts", timeoutMs: Number.MAX_SAFE_INTEGER },
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
|
||||
@@ -41,18 +41,6 @@ const STRICT_LITERAL_STRUCTS = new Set([
|
||||
]);
|
||||
|
||||
const DEFAULTED_OPTIONAL_INIT_PARAMS: Record<string, Set<string>> = {
|
||||
SessionOperationEvent: new Set(["agentId"]),
|
||||
SessionsCompactionBranchParams: new Set(["agentId"]),
|
||||
SessionsCompactionGetParams: new Set(["agentId"]),
|
||||
SessionsCompactionListParams: new Set(["agentId"]),
|
||||
SessionsCompactionRestoreParams: new Set(["agentId"]),
|
||||
SessionsCompactParams: new Set(["agentId"]),
|
||||
SessionsDeleteParams: new Set(["agentId"]),
|
||||
SessionsMessagesSubscribeParams: new Set(["agentId"]),
|
||||
SessionsMessagesUnsubscribeParams: new Set(["agentId"]),
|
||||
SessionsPatchParams: new Set(["agentId"]),
|
||||
SessionsResetParams: new Set(["agentId"]),
|
||||
SessionsSendParams: new Set(["agentId"]),
|
||||
SessionsAbortParams: new Set(["agentId"]),
|
||||
SessionOperationEvent: new Set(["agentId"]),
|
||||
SessionsUsageParams: new Set(["agentId", "agentScope"]),
|
||||
|
||||
Reference in New Issue
Block a user