test: fix flaky test-runner coverage threshold test · nodejs/node@3229886 · GitHub
Skip to content

Commit 3229886

Browse files
trivikrrichardlau
authored andcommitted
test: fix flaky test-runner coverage threshold test
Reset process.exitCode before running the coverage threshold check. This lets the test verify the exit code set by that run() call without depending on process-global state from earlier coverage runs. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> PR-URL: #64051 Refs: https://github.com/nodejs/reliability/issues?q=%22test-runner-run-coverage%22 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
1 parent 1182ad8 commit 3229886

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test/parallel/test-runner-run-coverage.mjs

Lines changed: 5 additions & 3 deletions

0 commit comments

Comments
 (0)