mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-11 14:54:47 -05:00
The recent change to support importing ktesting into an E2E suite without progress reporting was flawed: - If a Go unit test had a deadline (the default when invoked by `go test`!), the early return skipped initializing progress reporting. - When it didn't, for example when invoking a test binary directly under stress, a test created goroutines which were kept running, which broke leak checking in e.g. an integration tests TestMain. The revised approach uses reference counting: as long as some unit test is running, the progress reporting with the required goroutines are active. When the last one ends, they get cleaned up, which keeps the goleak checker happy. |
||
|---|---|---|
| .. | ||
| doc.go | ||
| example_test.go | ||