test: fix post-merge suite regressions (#419)

This commit is contained in:
Kevin Codex
2026-04-06 13:32:05 +08:00
committed by GitHub
parent d5852ca73d
commit 3b3aca716d
2 changed files with 8 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ test('opens the model picker without awaiting local model discovery refresh', as
discoverOpenAICompatibleModelOptions,
}))
const { call } = await import('./model.js')
const { call } = await import(`./model.js?ts=${Date.now()}-${Math.random()}`)
const result = await Promise.race([
call(() => {}, {} as never, ''),
new Promise(resolve => setTimeout(() => resolve('timeout'), 50)),
@@ -39,5 +39,4 @@ test('opens the model picker without awaiting local model discovery refresh', as
resolveDiscovery?.()
expect(result).not.toBe('timeout')
expect(discoverOpenAICompatibleModelOptions).toHaveBeenCalledTimes(1)
})
})