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

オープン
#1,985 コメント 0 件 リアクション 0 件 担当者 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分
マージ済み PR(30日)
387

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。