Skip to content

Commit 1902e0b

Browse files
author
Jeff Peeler
committed
fix(unit): use global logrus logging instance
This allows log level changes in the unit tests to be respected. Also, change operator groups default level to debug.
1 parent 0f9f9f4 commit 1902e0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/controller/operators/olm/operator_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func NewFakeOperator(clientObjs []runtime.Object, k8sObjs []runtime.Object, extO
131131
}
132132

133133
// Create the new operator
134-
queueOperator, err := queueinformer.NewOperatorFromClient(opClientFake, logrus.New())
134+
queueOperator, err := queueinformer.NewOperatorFromClient(opClientFake, logrus.StandardLogger())
135135
op := &Operator{
136136
Operator: queueOperator,
137137
client: clientFake,
@@ -2063,6 +2063,7 @@ func TestTransitionCSV(t *testing.T) {
20632063
}
20642064

20652065
func TestSyncOperatorGroups(t *testing.T) {
2066+
logrus.SetLevel(logrus.DebugLevel)
20662067
nowTime := metav1.Date(2006, time.January, 2, 15, 4, 5, 0, time.FixedZone("MST", -7*3600))
20672068
timeNow = func() metav1.Time { return nowTime }
20682069

0 commit comments

Comments
 (0)