Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
Fix for kubernetes/klog#378.

Signed-off-by: Steve Kriss <[email protected]>
  • Loading branch information
skriss committed Nov 7, 2023
1 parent 7c436b5 commit 00d6c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/k8s/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestKlogOnlyLogsToLogrus(t *testing.T) {
assert.Empty(t, <-outC)

infoEntry := logHook.AllEntries()[0]
assert.Equal(t, infoLog+"\n", infoEntry.Message)
assert.Equal(t, infoLog, infoEntry.Message)
assert.Len(t, infoEntry.Data, 2)
assert.Equal(t, "bar", infoEntry.Data["foo"])
assert.Equal(t, fmt.Sprintf("%s:%d", sourceFile, infoLine), infoEntry.Data["caller"])
Expand Down

0 comments on commit 00d6c3c

Please sign in to comment.