mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-10-06 13:44:27 +08:00
feat: 图片文字索引按时间分段优先处理最近图片
- 首次索引先处理最近 7 天,再依次回溯 30 天 / 近一年 / 更早历史 - 完成后新到的图片单独补齐,不受历史回填影响 - 覆盖度增加时间维度,可区分「最近已完整」与「更早仍在补齐」
This commit is contained in:
@@ -117,8 +117,15 @@ function createService(options: { count: number; notifyIntervalMs: number; perIm
|
||||
return { service, notifications }
|
||||
}
|
||||
|
||||
/**
|
||||
* 等 pass 收尾。
|
||||
*
|
||||
* 显式给足超时:这些用例故意让 240 张图各睡几毫秒来制造可观测的持续时间,
|
||||
* 而 `vi.waitFor` 的默认超时是 1000ms —— 机器稍慢就会以**断言失败**而不是
|
||||
* "超时"的形态报出来。这里等的是"跑完",不是"跑得快"。
|
||||
*/
|
||||
const finish = async (service: ImageTextIndexService): Promise<void> => {
|
||||
await vi.waitFor(() => expect(service.isRunning()).toBe(false))
|
||||
await vi.waitFor(() => expect(service.isRunning()).toBe(false), { timeout: 30_000 })
|
||||
}
|
||||
|
||||
describe('进度通知节流', () => {
|
||||
|
||||
Reference in New Issue
Block a user