Skip to content
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

testing: go test doen't report a test's name if it times out #50542

Closed
distinctdan opened this issue Jan 10, 2022 · 1 comment
Closed

testing: go test doen't report a test's name if it times out #50542

distinctdan opened this issue Jan 10, 2022 · 1 comment

Comments

@distinctdan
Copy link

What version of Go are you using (go version)?

Latest on playground, looks like 1.17.6

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

Playground

What did you do?

One of my tests is failing because it's waiting on a channel. When I run go test it does timeout, but it doesn't give me the name of the failing test. We have close to 1000 tests, so it was frustrating to track down which test is causing the problem. Here's a playground link that demonstrates the issue: https://go.dev/play/p/7ruH91WlBxd

What did you expect to see?

Go should report the name of a failing test, even if the failure is from a timeout

What did you see instead?

No test name

@bcmills
Copy link
Contributor

bcmills commented Jan 10, 2022

Duplicate of #39038

@bcmills bcmills marked this as a duplicate of #39038 Jan 10, 2022
@bcmills bcmills closed this as completed Jan 10, 2022
@golang golang locked and limited conversation to collaborators Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants