test(ci): fix timestamp and whisper regressions

This commit is contained in:
Neko Ayaka
2026-07-21 15:26:39 +08:00
parent 1ddb68381c
commit f2313e0070
2 changed files with 11 additions and 6 deletions
@@ -238,7 +238,7 @@ describe('createChatOrchestratorRuntime', () => {
it('keeps timestamp prefixes stable for legacy user messages without createdAt', async () => {
const harness = createHarness()
const legacyUserMessage = {
const legacyUserMessage: ChatHistoryItem = {
role: 'user' as const,
content: 'legacy prompt',
id: 'legacy-user',
@@ -49,11 +49,16 @@ vi.mock('../coordinator', () => ({
MODEL_VRAM_ESTIMATES: {},
}))
vi.mock('@proj-airi/stage-shared', () => ({
defaultPerfTracer: {
withMeasure: vi.fn((_category: string, _name: string, fn: () => unknown) => fn()),
},
}))
vi.mock('@proj-airi/stage-shared', async (importOriginal) => {
const actual = await importOriginal<typeof import('@proj-airi/stage-shared')>()
return {
...actual,
defaultPerfTracer: {
withMeasure: vi.fn((_category: string, _name: string, fn: () => unknown) => fn()),
},
}
})
describe('whisper adapter worker failure handling', () => {
beforeEach(() => {