forked from golang/glog
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When testing.T.Log gets called after the test has completed, it panics. There's also a data race (kubernetes/kubernetes#110854). Normally that should never happen because tests should ensure that all goroutines have stopped before returning. But sometimes it is not possible to do that. For those cases, "defer Stop(logger)" may be added to a test. When called, it will cause all future usage of the testing.T instance to be skipped.
- Loading branch information
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters