mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
With process isolation, the `--test-rerun-failures` state file is written by the parent process, which numbered tests sharing a location across all test files, while each child process numbers them within its own file. A test defined in a helper used by several test files was therefore looked up in a slot belonging to another file, and a failing test could be replayed as passed without running. Prefix the identifier of a test defined outside of its entry file with the entry file when tests run in per-file child processes, and build the identifier with the same helper on both sides. Signed-off-by: Moshe Atlow <moshe@atlow.co.il> PR-URL: https://github.com/nodejs/node/pull/67512 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>