test: close dirs in fs-opendir test#58855
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58855 +/- ##
==========================================
+ Coverage 90.08% 90.09% +0.01%
==========================================
Files 640 640
Lines 188446 188446
Branches 36960 36963 +3
==========================================
+ Hits 169757 169777 +20
+ Misses 11412 11399 -13
+ Partials 7277 7270 -7 🚀 New features to boost your workflow:
|
aduh95
left a comment
There was a problem hiding this comment.
Shouldn't we close it in a finally – or even better, use using?
|
I'd just keep it aligned with the rest of the file for now, and do a larger-scale |
Commit Queue failed- Loading data for nodejs/node/pull/58855 ✔ Done loading data for nodejs/node/pull/58855 ----------------------------------- PR info ------------------------------------ Title test: close dirs in `fs-opendir` test (#58855) Author Livia Medeiros <livia@cirno.name> (@LiviaMedeiros) Branch LiviaMedeiros:test-fs-opendir-close-handles -> nodejs:main Labels test, author ready, needs-ci Commits 2 - test: close dirs in `fs-opendir` test - squash: lint Committers 2 - LiviaMedeiros <livia@cirno.name> - GitHub <noreply@github.com> PR-URL: https://github.com/nodejs/node/pull/58855 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/58855 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> -------------------------------------------------------------------------------- ℹ This PR was created on Thu, 26 Jun 2025 21:11:38 GMT ✔ Approvals: 2 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/58855#pullrequestreview-2967628139 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/58855#pullrequestreview-2968449945 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2025-06-28T06:36:30Z: https://ci.nodejs.org/job/node-test-pull-request/67695/ - Querying data for job/node-test-pull-request/67695/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 58855 From https://github.com/nodejs/node * branch refs/pull/58855/merge -> FETCH_HEAD ✔ Fetched commits as 1c2fa7ee7090..49591bc17abb -------------------------------------------------------------------------------- Auto-merging test/parallel/test-fs-opendir.js [main bec7fb0a62] test: close dirs in `fs-opendir` test Author: LiviaMedeiros <livia@cirno.name> Date: Fri Jun 27 05:07:18 2025 +0800 1 file changed, 2 insertions(+) Auto-merging test/parallel/test-fs-opendir.js [main c78fbf9abf] squash: lint Author: Livia Medeiros <livia@cirno.name> Date: Fri Jun 27 05:16:15 2025 +0800 1 file changed, 1 insertion(+), 1 deletion(-) ✔ Patches applied There are 2 commits in the PR. Attempting autorebase. Rebasing (2/4) Executing: git node land --amend --yes --------------------------------- New Message ---------------------------------- test: close dirs in `fs-opendir` testhttps://github.com/nodejs/node/actions/runs/15948276759 |
|
Landed in f0a9478 |
PR-URL: #58855 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #58855 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #58855 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Two subtests in
test-fs-opendir.jsare not closing dir. Let's fix it.