mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Merge pull request #136132 from pohly/ktesting-default-verbosity
ktesting: avoid increasing default verbosity
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user