Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
testing: timeout docs for "go test -h" are ambiguous #20090
"go test -h" says this about timeouts:
"A test" is ambiguous in this context. I took it to mean "A single test", that is, "Each test has a timeout of
This also tripped up at least one person recently in the
I just faced some confusing related to this ambiguous text message myself.
My colleague thought it applied to the entire test run. I thought he was wrong, as the usage message clearly says
Which you can then run with
And then run:
You'll see that this DOES run. So clearly the timeout value IS on a per package level. It is NOT applied on the entire test run, and it is not applied per individual level.
Which is why I propose that we change the message to something like:
Or anything similar that mentions the word "