Skip to content

Commit f47e6d0

Browse files
committed
fix: enable len rule from testifylint in module component-base
1 parent 35f5841 commit f47e6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/component-base/logs/json/json_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func TestZapLoggerInfo(t *testing.T) {
9898

9999
logStrLines := strings.Split(logStr, "\n")
100100
dataFormatLines := strings.Split(data.format, "\n")
101-
if !assert.Equal(t, len(logStrLines), len(dataFormatLines)) {
101+
if !assert.Len(t, logStrLines, len(dataFormatLines)) {
102102
t.Errorf("Info has wrong format: no. of lines in log is incorrect \n expect:%d\n got:%d", len(dataFormatLines), len(logStrLines))
103103
}
104104

0 commit comments

Comments
 (0)