Merge pull request #136132 from pohly/ktesting-default-verbosity

ktesting: avoid increasing default verbosity
This commit is contained in:
Kubernetes Prow Robot
2026-01-09 22:17:50 +05:30
committed by GitHub
3 changed files with 10 additions and 6 deletions

View File

@@ -34,6 +34,11 @@ import (
"k8s.io/kubernetes/test/utils/ktesting/initoption"
)
// Some of these tests capture log output. Don't reduce the verbosity or they will fail!
func init() {
ktesting.SetDefaultVerbosity(5)
}
// ClaimInfo test cases
const (

View File

@@ -29,6 +29,11 @@ import (
"k8s.io/kubernetes/test/utils/ktesting/initoption"
)
// Some of these tests capture log output. Don't reduce the verbosity or they will fail!
func init() {
ktesting.SetDefaultVerbosity(5)
}
// Mock syncLoopHealthChecker
type mockSyncLoopHealthChecker struct {
healthCheckErr error

View File

@@ -27,12 +27,6 @@ import (
_ "k8s.io/component-base/logs/testinit"
)
func init() {
// This is a good default for unit tests. Benchmarks should add their own
// init function or TestMain to lower the default, for example to 2.
SetDefaultVerbosity(5)
}
// SetDefaultVerbosity can be called during init to modify the default
// log verbosity of the program.
//