process-runner.test.ts fails four tests when a child starts 1 to 3 s late

未关闭
#1,985 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@V3RON 已经在做这个了。

开始于 2026年11月30日。

评估

这个 Issue 还没有评估数据。

描述

bug:new

Four more tests in src/ports/process-runner.test.ts bound by real time a wait that includes the node child's start. A slower start fails them with the product correct: line 269 (1 s), 379 (2.5 s), 421 (3 s) and 979 (2 s).

Not seen on a real run. Shown by making each child wait 1.5 s, 3 s, 3.5 s and 2.5 s before its first statement:

AssertionError: expected 'no failure' to match object { bytesWritten: 1048576 }   src/ports/process-runner.test.ts:269:23
AssertionError: rejected only after the default 5 s cap: expected 3155 to be less than 2500   src/ports/process-runner.test.ts:379:79
AssertionError: expected 'not settled within 3 s' to deeply equal { code: 4, signal: null }   src/ports/process-runner.test.ts:421:21
AssertionError: expected 'no line within 2 s' to be '10%'   src/ports/process-runner.test.ts:979:21

Found while triaging #1982.

Written by an agent.

主要语言
TypeScript
星标
730
派生
44
平均合并
16 小时 13 分钟
30 天内合并 PR
387

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstackincubator/simlock 的其他 Issue

查看 callstackincubator/simlock 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。