Menghuan1918
5d259cca61
test(editor-host): 慢 runner 上给「等树渲染出行」一个 5s 条件预算
CI(ubuntu lane,2 核、与 184 个文件并行)稳定红在
`tests/editor-host.spec.tsx > EditorHost native-tab context-menu actions >
keeps the bottom-workbench split for a tab that lives there`,签名是
`AssertionError: expected false to be true`、落在 **spec:74**(`waitForTreeRow`
里的 `expect(found).toBe(true)`),耗时 ~1026ms —— 正好是 `vi.waitFor` 的
**默认 1000ms**。
根因不是产品缺陷,而是预算错配:`vi.waitFor` 的默认超时与套件的
`testTimeout`(15s,当年为 Windows lane 的真实子进程抬的)**互不相干**,仍是 1s。
上次 `630d10f` 已经把这个 helper 从「drain 微任务」改成「等真实渲染条件」,但条件
等待的预算没跟着抬,于是一旦 `fs.trees` 的应答 + React flush 越过 1s(满载的
2 核 runner 上很容易),断言还是先超时。
本机复现(往 `fs.trees` mock 注入 1200ms):
- 默认 1s 预算 → 1049ms 红,签名与 CI 逐字相同;
- 5s 预算 → 1296ms 绿。
仍是**条件**等待而不是固定时长:行一渲染出来就返回;树永远列不出该行时用例照样
失败(只是从 1s 变成 5s),`630d10f` 的反判别性检查继续成立。测试改动,产品代码
零改动。同一暴露面还有 7 处 `vi.waitFor` 未给预算(`zip.spec.ts` ×4 /
`dock-fallback.spec.tsx` ×2 / 本文件外),暂未在 lane 上翻车,未一并改动。
2026-10-08 21:58:13 +08:00
..
2026-10-06 00:07:23 +08:00
2026-08-18 20:29:14 +08:00
2026-10-06 00:54:24 +08:00
2026-10-05 02:35:18 +08:00
2026-09-03 20:29:50 +08:00
2026-08-27 21:44:04 +08:00
2026-08-15 00:28:59 +08:00
2026-10-05 02:22:03 +08:00
2026-09-09 11:15:30 +08:00
2026-10-05 02:22:03 +08:00
2026-08-21 23:49:13 +08:00
2026-08-12 18:27:28 +08:00
2026-10-05 23:38:04 +08:00
2026-10-05 23:42:45 +08:00
2026-10-05 23:42:45 +08:00
2026-09-09 23:09:48 +08:00
2026-10-05 22:39:22 +08:00
2026-09-28 18:20:08 +08:00
2026-10-05 22:39:22 +08:00
2026-10-05 23:42:45 +08:00
2026-10-05 02:22:03 +08:00
2026-10-05 02:19:58 +08:00
2026-10-05 02:19:58 +08:00
2026-10-05 23:03:40 +08:00
2026-09-07 18:52:18 +08:00
2026-09-14 00:08:38 +08:00
2026-09-03 12:04:35 +08:00
2026-09-07 23:51:10 +08:00
2026-10-05 23:43:14 +08:00
2026-09-01 23:05:26 +08:00
2026-10-05 01:29:00 +08:00
2026-09-29 17:54:53 +08:00
2026-09-03 17:32:04 +08:00
2026-10-06 00:55:49 +08:00
2026-09-15 10:42:46 +08:00
2026-10-05 22:36:10 +08:00
2026-10-08 21:58:13 +08:00
2026-08-11 11:16:36 +08:00
2026-09-09 15:18:06 +08:00
2026-09-21 02:14:46 +08:00
2026-10-05 01:58:18 +08:00
2026-10-05 02:13:53 +08:00
2026-09-11 15:28:49 +08:00
2026-10-01 17:21:10 +08:00
2026-10-05 11:31:54 +08:00
2026-09-30 01:56:11 +08:00
2026-10-05 02:13:53 +08:00
2026-10-05 02:13:53 +08:00
2026-10-05 02:22:03 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-10-05 22:57:58 +08:00
2026-10-01 17:13:10 +08:00
2026-10-01 17:15:49 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-10-05 22:57:58 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-10-05 22:58:01 +08:00
2026-09-02 10:55:03 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-10-06 08:25:30 -07:00
2026-10-05 23:11:11 +08:00
2026-10-08 21:55:12 +08:00
2026-10-05 22:57:58 +08:00
2026-08-18 18:05:01 +08:00
2026-09-27 22:18:57 +08:00
2026-08-22 22:50:13 +08:00
2026-10-05 23:36:02 +08:00
2026-09-28 20:37:56 +08:00
2026-10-05 11:31:54 +08:00
2026-10-08 21:48:13 +08:00
2026-10-05 02:13:53 +08:00
2026-10-05 02:13:53 +08:00
2026-08-16 23:35:57 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-10-01 17:26:29 +08:00
2026-10-06 15:36:36 +08:00
2026-10-05 22:25:51 +08:00
2026-10-05 02:41:34 +08:00
2026-10-05 02:41:34 +08:00
2026-09-14 00:08:38 +08:00
2026-10-05 02:50:34 +08:00
2026-10-05 02:19:58 +08:00
2026-10-08 21:56:03 +08:00
2026-10-05 22:19:26 +08:00
2026-10-05 22:19:26 +08:00
2026-09-12 17:30:58 +08:00
2026-10-01 18:41:27 +08:00
2026-10-05 01:54:17 +08:00
2026-09-11 12:02:41 +08:00
2026-09-01 16:01:34 +08:00
2026-09-09 15:18:06 +08:00
2026-10-05 23:42:45 +08:00
2026-09-22 17:09:08 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:18:19 +08:00
2026-08-13 10:26:57 +08:00
2026-10-06 00:54:24 +08:00
2026-09-02 23:15:19 +08:00
2026-10-05 02:22:03 +08:00
2026-08-24 12:05:14 +08:00
2026-10-06 00:19:11 +08:00
2026-09-09 15:18:06 +08:00
2026-10-06 00:19:11 +08:00
2026-10-06 00:19:11 +08:00
2026-10-06 00:54:24 +08:00
2026-09-28 21:21:45 +08:00
2026-09-03 12:04:35 +08:00
2026-09-28 18:08:21 +08:00
2026-08-18 01:22:28 +08:00
2026-09-23 22:24:56 +08:00
2026-08-18 01:22:28 +08:00
2026-10-06 00:06:37 +08:00
2026-10-01 17:25:16 +08:00
2026-10-05 02:19:58 +08:00
2026-09-13 18:36:46 +08:00
2026-10-05 23:03:40 +08:00
2026-09-03 19:59:00 +08:00
2026-10-05 02:22:03 +08:00
2026-10-05 22:58:01 +08:00
2026-10-05 23:36:02 +08:00
2026-09-28 00:27:31 +08:00
2026-09-28 18:08:21 +08:00
2026-09-28 18:20:08 +08:00
2026-09-21 20:35:11 +08:00
2026-10-05 21:46:26 +08:00
2026-10-01 22:05:56 +08:00
2026-10-05 02:22:03 +08:00
2026-08-16 23:35:57 +08:00
2026-09-03 19:59:00 +08:00
2026-09-23 20:46:11 +08:00
2026-10-05 23:38:04 +08:00
2026-10-05 23:38:04 +08:00
2026-09-23 22:36:05 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:18:35 +08:00
2026-09-06 23:46:46 +08:00
2026-10-05 01:55:36 +08:00
2026-10-05 01:55:36 +08:00
2026-09-09 23:09:48 +08:00
2026-10-05 23:43:14 +08:00
2026-10-06 10:50:51 -07:00
2026-08-13 01:39:59 +08:00
2026-09-03 12:04:35 +08:00
2026-09-28 20:11:46 +08:00
2026-10-01 18:41:27 +08:00
2026-08-16 16:24:28 +08:00
2026-09-09 11:15:30 +08:00
2026-10-05 23:38:04 +08:00
2026-10-05 23:38:04 +08:00
2026-10-05 23:13:23 +08:00
2026-10-05 11:32:16 +08:00
2026-09-09 15:18:06 +08:00
2026-09-07 18:52:18 +08:00
2026-10-05 00:56:36 +08:00
2026-10-01 17:18:08 +08:00
2026-10-01 17:17:57 +08:00
2026-09-22 17:09:08 +08:00
2026-10-05 01:41:40 +08:00
2026-10-06 08:25:30 -07:00
2026-10-05 23:13:23 +08:00
2026-09-22 17:09:08 +08:00
2026-09-27 22:19:05 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:18:35 +08:00
2026-10-05 21:53:08 +08:00
2026-09-09 15:18:06 +08:00
2026-10-05 23:03:40 +08:00
2026-09-09 15:18:06 +08:00
2026-09-21 20:35:11 +08:00
2026-10-08 21:56:03 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:19:05 +08:00
2026-10-05 00:54:34 +08:00
2026-09-30 02:24:36 +08:00
2026-09-27 22:19:05 +08:00
2026-10-06 00:06:37 +08:00
2026-09-03 12:04:24 +08:00
2026-10-05 22:25:51 +08:00
2026-10-05 01:58:18 +08:00
2026-10-03 20:54:00 +00:00
2026-10-06 15:36:36 +08:00
2026-09-27 22:18:57 +08:00
2026-10-01 17:18:31 +08:00
2026-09-28 18:20:08 +08:00
2026-08-20 18:28:57 +08:00
2026-09-27 22:18:14 +08:00
2026-09-27 22:18:14 +08:00
2026-10-05 02:22:03 +08:00