plog.TestLogger returns a buffer instead of taking one in

This commit is contained in:
Joshua Casey
2024-11-07 16:21:41 -06:00
parent dc86c9305c
commit 0c131f11f8
17 changed files with 52 additions and 86 deletions

View File

@@ -4,7 +4,6 @@
package cachecleaner
import (
"bytes"
"context"
"testing"
@@ -146,8 +145,7 @@ func TestController(t *testing.T) {
}
webhooks := informers.Authentication().V1alpha1().WebhookAuthenticators()
jwtAuthenticators := informers.Authentication().V1alpha1().JWTAuthenticators()
var log bytes.Buffer
logger := plog.TestLogger(t, &log)
logger, log := plog.TestLogger(t)
controller := New(cache, webhooks, jwtAuthenticators, logger)