-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/test2json: has no timeout and behaves differently from go test
in terms of signal handling
#54023
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
Change https://go.dev/cl/419295 mentions this issue: |
related to #53563 |
I submitted a cl. As I replied in cl, I think it might be more appropriate to put the signal related code into |
Why do we need a timeout? We don't expect people to run test2json themselves. We expect them to run it via |
If we don't expect people to run By the way, I want to confirm, should I add the signal related code directly to the test2json package? I originally wanted to move it from how about you?@bcmills |
Duplicate of #53563 |
If you want to run the test with a timeout outside of The signal-handling behavior is exactly the root cause of #53563. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
go test
has-timeout
and does not handle the Ctrl-C. Buttest2json
does not have test2json and handles Ctrl-C.What did you see instead?
test2json
should behave the same asgo test
in terms of signal handling.The text was updated successfully, but these errors were encountered: