plog.TestLogger returns a buffer that holds the logs

# Conflicts:
#	internal/controller/apicerts/certs_expirer_test.go
#	internal/plog/plog_test.go
#	internal/plog/testing.go
#	pkg/oidcclient/login_test.go
This commit is contained in:
Joshua Casey
2024-11-27 13:53:00 -06:00
parent a67af9455b
commit dd42f35db0
3 changed files with 12 additions and 13 deletions
@@ -2555,7 +2555,7 @@ func TestController(t *testing.T) {
require.Len(t, actualIDP.Status.Conditions, countExpectedConditions)
require.Equal(t, tt.wantResultingUpstreams[i], *actualIDP)
}
testutil.RequireLogLines(t, tt.wantLogs, &log)
testutil.RequireLogLines(t, tt.wantLogs, log)
// This needs to happen after the expected condition LastTransitionTime has been updated.
wantActions := make([]coretesting.Action, 3+len(tt.wantResultingUpstreams))