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

Đang mở
#1,985 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@V3RON đang làm issue này rồi.

Từ ngày 30/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
730
Fork
44
Merge trung bình
16 giờ 13 phút
Pull request đã merge (30 ngày)
387

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstackincubator/simlock

Tất cả issue của callstackincubator/simlock

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.