We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf39e5e commit 9e305e4Copy full SHA for 9e305e4
test/output.go
@@ -559,10 +559,10 @@ func Output(t *testing.T, config OutputConfig) {
559
t.Run(n, func(t *testing.T) {
560
initPrintWithKlog(t, test)
561
562
- testOutput := func(t *testing.T, expectedLine int, print func(buffer *bytes.Buffer)) {
+ testOutput := func(t *testing.T, expectedLine int, logToBuffer func(buffer *bytes.Buffer)) {
563
var tmpWriteBuffer bytes.Buffer
564
klog.SetOutput(&tmpWriteBuffer)
565
- print(&tmpWriteBuffer)
+ logToBuffer(&tmpWriteBuffer)
566
klog.Flush()
567
568
actual := tmpWriteBuffer.String()
0 commit comments