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?
Can we add a
func (*T) Context() context.Contextaccessor 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?