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 摘要。