René's URL Explorer Experiment


Title: Test runner file exits with code 1 when awaiting tests + filtering · Issue #64203 · nodejs/node · GitHub

Open Graph Title: Test runner file exits with code 1 when awaiting tests + filtering · Issue #64203 · nodejs/node

X Title: Test runner file exits with code 1 when awaiting tests + filtering · Issue #64203 · nodejs/node

Description: Version v26.3.0 Platform Microsoft Windows NT 10.0.26200.0 x64 also reproduces under WSL: Linux dell-xps-3 6.18.33.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026 x86_64 GNU/Linux Subsystem node:test What st...

Open Graph Description: Version v26.3.0 Platform Microsoft Windows NT 10.0.26200.0 x64 also reproduces under WSL: Linux dell-xps-3 6.18.33.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026 x86_...

X Description: Version v26.3.0 Platform Microsoft Windows NT 10.0.26200.0 x64 also reproduces under WSL: Linux dell-xps-3 6.18.33.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026 x86_...

Opengraph URL: https://github.com/nodejs/node/issues/64203

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test runner file exits with code 1 when awaiting tests + filtering","articleBody":"### Version\n\nv26.3.0\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.26200.0 x64\n```\n\nalso reproduces under WSL:\n\n```\nLinux dell-xps-3 6.18.33.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026 x86_64 GNU/Linux\n```\n\n### Subsystem\n\nnode:test\n\n### What steps will reproduce the bug?\n\nWeird one to minify, here's what I got it down to:\n\n```js\nimport test from \"node:test\";\n\nawait test.suite(\"Suite A\", async (t) => {\n});\n\nawait test.suite(\"Suite B\", async (t) => {\n  await test(\"Test 1\", async () => {\n  });\n  await test(\"Test 2\", async () => {\n  });\n});\n\nawait test.suite(\"Suite C\", async () => {\n  await test(\"Test 3\", async () => {\n  });\n});\n```\n\nThen `node --test --test-name-pattern=C test.js` (or any other pattern than `B`) gives the following error output:\n\n```\n▶ Suite C\n  ✔ Test 3 (0.8439ms)\n✔ Suite C (1.0333ms)\n✖ test.js (54.3035ms)\nℹ tests 2\nℹ suites 1\nℹ pass 1\nℹ fail 1\nℹ cancelled 0\nℹ skipped 0\nℹ todo 0\nℹ duration_ms 59.748\n```\n\nAlso reproduces using `.only` rather than `--test-name-pattern`\n\nWithout `--test` it produces the following output, with an exit code of 1 - note the change to `cancelled`!:\n\n```\n▶ Suite C\n  ✔ Test 3 (0.175ms)\n✔ Suite C (1.024ms)\nℹ tests 2\nℹ suites 1\nℹ pass 1\nℹ fail 0\nℹ cancelled 1\nℹ skipped 0\nℹ todo 0\nℹ duration_ms 6.6097\n```\n\n`--trace-exit` does not list anything additional.\nLogging `exitCode` in `process.on(\"exit\")` is `1`.\n\nUsing `--test-reporter=tap` only lists expected `ok` tests without `--test`, with it it also lists:\n\n```\n# Subtest: test.js\nnot ok 1 - test.js\n  ---\n  duration_ms: 59.742\n  type: 'test'\n  location: 'D:\\\\scratch\\\\node-test-repro\\\\test.js:1:1'\n  failureType: 'testCodeFailure'\n  exitCode: 1\n  signal: ~\n  error: 'test failed'\n  code: 'ERR_TEST_FAILURE'\n  ...\n1..2\n```\n\nas expected.\n\nRemoving any of the awaits, from either suites or tests seems to resolve the issue.\n\n### How often does it reproduce? Is there a required condition?\n\nSeemingly reliably, though given it seems to be a timing related issue I can't promise that...\n\n### What is the expected behavior? Why is that the expected behavior?\n\nIt's quite possible there is some legitimate usage error here, but it should at least report what it is clearly, and certainly not only in such specific conditions!\n\nThe reason I'm using awaits in the tests in the suites is due to the editor / linter getting fussy about unawaited promises due to the types. This is a generally very handy check, so I'm loath to ignore it...\n\n### What do you see instead?\n\n(provided above)\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/simonbuchan","@type":"Person","name":"simonbuchan"},"datePublished":"2026-06-30T00:03:09Z","url":"https://github.com/nodejs/node/issues/64203"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:df3c5702-11a8-9c27-abeb-e77699ac874f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE47A:F5278:8E971D:BCCFB6:6AED2ABB
html-safe-nonce4ff9de3ad93301738939d9eee0c4c83acb6aecf4106b249f17947cc7c6fa78f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDdBOkY1Mjc4OjhFOTcxRDpCQ0NGQjY6NkFFRDJBQkIiLCJ2aXNpdG9yX2lkIjoiMTcyNTIxMTc5MzkyMDE3NDc3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac26a605eeb7056956cb532af72397c121ca8b6512ce3bed45fe6552c7ab9c0684
hovercard-subject-tagissue:4772498198
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/64203/issue_layout
twitter:imagehttps://opengraph.githubassets.com/27adc86008d77f599f42e60a0a117372bb14f76c42b81aa6db584cf0e6c8dc1f/nodejs/node/issues/64203
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/27adc86008d77f599f42e60a0a117372bb14f76c42b81aa6db584cf0e6c8dc1f/nodejs/node/issues/64203
og:image:altVersion v26.3.0 Platform Microsoft Windows NT 10.0.26200.0 x64 also reproduces under WSL: Linux dell-xps-3 6.18.33.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026 x86_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesimonbuchan
hostnamegithub.com
expected-hostnamegithub.com
None9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release98b41fa4b5635ceb45a4c54320fced73817ff290
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/64203#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64203
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64203
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/64203
Reloadhttps://github.com/nodejs/node/issues/64203
Reloadhttps://github.com/nodejs/node/issues/64203
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64203
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64203
#64208https://github.com/nodejs/node/pull/64208
Test runner file exits with code 1 when awaiting tests + filteringhttps://github.com/nodejs/node/issues/64203#top
#64208https://github.com/nodejs/node/pull/64208
https://github.com/simonbuchan
simonbuchanhttps://github.com/simonbuchan
on Jun 30, 2026https://github.com/nodejs/node/issues/64203#issue-4772498198
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#64208https://github.com/nodejs/node/pull/64208
on Jul 29, 2026https://github.com/nodejs/node/issues/64203#event-28631908551
nodejs-github-bothttps://github.com/nodejs-github-bot
on Jul 29, 2026https://github.com/nodejs/node/issues/64203#event-28631908606
test_runner: wait for filtered suite buildhttps://github.com/nodejs/node/commit/853358e70f2a0c8f93fd8ab9fd36b846f455c35a
853358ehttps://github.com/nodejs/node/commit/853358e70f2a0c8f93fd8ab9fd36b846f455c35a
aduh95https://github.com/aduh95
on Aug 3, 2026https://github.com/nodejs/node/issues/64203#event-28901687206
test_runner: wait for filtered suite buildhttps://github.com/nodejs/node/commit/163c544713bdab17700a06e7c3f642c491699782
163c544https://github.com/nodejs/node/commit/163c544713bdab17700a06e7c3f642c491699782
test_runner: wait for filtered suite buildhttps://github.com/nodejs/node/commit/04bba8d6c0c297667db7cfcd0075d20737a3d122
04bba8dhttps://github.com/nodejs/node/commit/04bba8d6c0c297667db7cfcd0075d20737a3d122
test_runner: wait for filtered suite buildhttps://github.com/nodejs/node/commit/4368303e018b06cb6aeffdc608c845b51af2640e
4368303https://github.com/nodejs/node/commit/4368303e018b06cb6aeffdc608c845b51af2640e
test_runner: wait for filtered suite buildhttps://github.com/nodejs/node/commit/8ec80b311b8c0d6c972cc4dd8124f9020a1a8551
8ec80b3https://github.com/nodejs/node/commit/8ec80b311b8c0d6c972cc4dd8124f9020a1a8551
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/64203
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64203
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.