mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-08 15:21:55 +00:00
plog.TestLogger returns a buffer instead of taking one in
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user