Title: testrunner: run() ignores timeout option · Issue #58802 · nodejs/node · GitHub
Open Graph Title: testrunner: run() ignores timeout option · Issue #58802 · nodejs/node
X Title: testrunner: run() ignores timeout option · Issue #58802 · nodejs/node
Description: Version 24.1.0 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem What steps will reproduce the bug? runner.js import { run } from "node:test"; import { spec } from "node:test/reporters"; run({ timeout: 1000 }).compose(spec) .pipe(...
Open Graph Description: Version 24.1.0 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem What steps will reproduce the bug? runner.js import { run } from "node:test"; import { spec } from "node:test/reporters"; run...
X Description: Version 24.1.0 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem What steps will reproduce the bug? runner.js import { run } from "node:test"; import { spec } from "node:test/...
Opengraph URL: https://github.com/nodejs/node/issues/58802
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"testrunner: run() ignores timeout option","articleBody":"### Version\n\n24.1.0\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.19045.0 x64\n```\n\n### Subsystem\n\n-\n\n### What steps will reproduce the bug?\n\nrunner.js\n```javascript\nimport { run } from \"node:test\";\nimport { spec } from \"node:test/reporters\";\n\nrun({\n timeout: 1000\n}).compose(spec)\n .pipe(process.stdout);\n``` \n\ntee.test.js\n```javascript\nimport { test } from \"node:test\";\n\ntest(\"tee\", async () =\u003e {\n console.log(\"tee\");\n await new Promise(() =\u003e { });\n})\n``` \n\nRun `node runner.js` -\u003e Program never exits\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nTest should run into timeout. Works as expected with `--test-timeout` flag.\n\n### What do you see instead?\n\nTimeout probably remains infinity and program never exits.\n\n### Additional information\n\n-","author":{"url":"https://github.com/ILikeRubberDuckies","@type":"Person","name":"ILikeRubberDuckies"},"datePublished":"2025-06-23T12:41:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/58802/node/issues/58802"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7a3a7d88-94ba-8512-47cd-b365968e1c92 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90AC:1E6125:7E3A92:B196DA:6A4E7BAD |
| html-safe-nonce | 3162f02a4bc9c7487717237b321dcc9974bfa545ac556b52c650da0def36a9ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEFDOjFFNjEyNTo3RTNBOTI6QjE5NkRBOjZBNEU3QkFEIiwidmlzaXRvcl9pZCI6IjkxMjkyNDg4NTY4NDM2NDc5MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 73a01dfbea10ca6991925e189b3a93ba23cec80cedbd20f181184ffbd9985484 |
| hovercard-subject-tag | issue:3168058078 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/58802/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be9a46a98f8d5d41c188cd59307fb741b2345f1399870bc3bc5a6052e6a24dfc/nodejs/node/issues/58802 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be9a46a98f8d5d41c188cd59307fb741b2345f1399870bc3bc5a6052e6a24dfc/nodejs/node/issues/58802 |
| og:image:alt | Version 24.1.0 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem What steps will reproduce the bug? runner.js import { run } from "node:test"; import { spec } from "node:test/reporters"; run... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ILikeRubberDuckies |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width