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.
2 parents 35f5841 + f47e6d0 commit 7bfdda4Copy full SHA for 7bfdda4
staging/src/k8s.io/component-base/logs/json/json_test.go
@@ -98,7 +98,7 @@ func TestZapLoggerInfo(t *testing.T) {
98
99
logStrLines := strings.Split(logStr, "\n")
100
dataFormatLines := strings.Split(data.format, "\n")
101
- if !assert.Equal(t, len(logStrLines), len(dataFormatLines)) {
+ if !assert.Len(t, logStrLines, len(dataFormatLines)) {
102
t.Errorf("Info has wrong format: no. of lines in log is incorrect \n expect:%d\n got:%d", len(dataFormatLines), len(logStrLines))
103
}
104
0 commit comments