fix(ci): stabilize static and coverage gates

This commit is contained in:
Yichen Jiang
2026-07-10 15:21:22 +08:00
parent 680ae53bb6
commit b5b17a7f65
2 changed files with 29 additions and 13 deletions

View File

@@ -663,7 +663,10 @@ describe('dsh-workflow-workerthread', () => {
`),
parent,
})
await vi.waitFor(() => { expect(order.filter(entry => entry.startsWith('start:')).length).toBe(2) })
await vi.waitFor(
() => { expect(order.filter(entry => entry.startsWith('start:')).length).toBe(2) },
{ timeout: 5_000 },
)
const fast = provider.runs.find(run => (run.request.prompt[0] as { text?: string }).text === 'fast')!
fast.settle(text('fast done'))
handle.cancel('stop now')
@@ -802,7 +805,10 @@ describe('dsh-workflow-workerthread', () => {
`),
parent,
})
await vi.waitFor(() => { expect(order.filter(entry => entry.startsWith('start:')).length).toBe(2) })
await vi.waitFor(
() => { expect(order.filter(entry => entry.startsWith('start:')).length).toBe(2) },
{ timeout: 5_000 },
)
const fast = provider.runs.find(run => (run.request.prompt[0] as { text?: string }).text === 'fast')!
fast.settle(text('fast done'))
const result = await handle.result