Skip to content

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

Closed

Description

@distinctdan

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

Activity

  1. bcmills commented on Jan 10, 2022

    @bcmills
    Contributor

    Duplicate of #39038

  2. locked and limited conversation to collaborators on Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions