-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: go test timeout doesn't take into account count #17337
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
Comments
You can already override the timeout with |
@quentinmit In the case of benchmark, I really do want to wait the full length. Some benchmarks have to be run with high counts to get good accuracy. It's annoying to add the timeout every time. Please reconsider opening this bug. |
Duplicate of #12446 |
A possible workaround is to use On Wed, Oct 5, 2016 at 9:54 AM, Carl Mastrangelo [email protected]
|
@davecheney it's risky, because if the timer is even off by a little, it would fire too early (and also ignores the -test.benchtime). It would be better to not have a work around at all, and the test runner do the right thing by default. My own version was just to set the timeout to 20 hours, which is arguably not good either. @dsnet mentioned in his bug that it isn't straightforward, but I think it should still be solved (by me maybe, if there is agreement that it's a problem). |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.7.1
When running a large number of tests or benchmarks, the test timeout in src/cmd/go/test.go is hard coded to 10 minutes
This means that the
-test.count
parameter is not taken into account, when in fact it should be.The text was updated successfully, but these errors were encountered: