-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
proposal: testing: timeouts for each or a particular test #44442
Comments
Can you make some specific proposals for how this should work? Thanks. |
It would be best to have a timeout wrapper as a part of the test suite, so something like: /// return true, or fail the test But writing a wrapper is not that difficult: |
I don't see how to implement |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
@honDhan just FYI cmd/go: add per-test timeouts was accepted. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you expect to see?
Similar to #10529.
Proposal: add a test-specific timeout
For CI pipelines and other use cases, it's useful to have a test-specific timeout instead of a timeout for the whole run.
For example, it would be nice to specify a timeout of 10s for each test. This way, more tests can be added without having to reconfigure the
-timeout
.Additionally, it would also be nice to be able to pass a test even after timing out. This way, you can set different test-specific timeouts to adjust which tests run.
The text was updated successfully, but these errors were encountered: