mirror of
https://github.com/moeru-ai/airi.git
synced 2026-08-14 08:52:42 +00:00
test(ci): fix timestamp and whisper regressions
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user