-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--test-timeout behavior bug #57656
Comments
- because it turns out thats per module and not per test nodejs/node#57656
Thanks for the report, we had a discussion about it here #53773 (comment) a while ago, I was trying to fix this but lost track, I should pick this work up again. cc. @cjihrig |
Yes, this feature has been broken since it landed: #50431 (comment). |
Just finished some digging, will try to put up a PR tomorrow. Also I read the doc and some of the previous convocations again, wanted to ask - is it too late to change the behaviour of My understanding of the What do you think? @cjihrig |
The current behavior is absolutely a bug, so we should treat the fix as semver patch. |
Version
22.14.0
Platform
Subsystem
No response
What steps will reproduce the bug?
The
--test-timeout
flag passed to node seems to affect the module level rather than the individual tests, which doesn't make a lot of sense.For example, with a test file like:
run with
node --test --test-timeout=10000
vsnode --test --test-timeout=20000
Each test takes about 7000ms to run, so they should each pass and the module should pass, with either test-timeout value. However, in fact, the 10000 test-timeout value fails because the module as a whole takes longer than 10000ms.
How often does it reproduce? Is there a required condition?
Every time with the above conditions
What is the expected behavior? Why is that the expected behavior?
The
--test-timeout
flag should affect the individual tests and not the modules. Otherwise, you'd need to know how many tests you were planning to write ahead of time, which doesn't make sense.What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: