Skip to content

testing: add T.Context() accessor #16221

Closed
@bradfitz

Description

@bradfitz

Can we add a func (*T) Context() context.Context accessor in the testing package?

And then make each test run with a context which is canceled when it finishes.

Then goroutines created by tests can select on the test's completion (pass or fail).

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions