mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
fix: enable len rule from testifylint in module component-base
This commit is contained in:
parent
35f584187a
commit
f47e6d0428
@ -98,7 +98,7 @@ func TestZapLoggerInfo(t *testing.T) {
|
||||
|
||||
logStrLines := strings.Split(logStr, "\n")
|
||||
dataFormatLines := strings.Split(data.format, "\n")
|
||||
if !assert.Equal(t, len(logStrLines), len(dataFormatLines)) {
|
||||
if !assert.Len(t, logStrLines, len(dataFormatLines)) {
|
||||
t.Errorf("Info has wrong format: no. of lines in log is incorrect \n expect:%d\n got:%d", len(dataFormatLines), len(logStrLines))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user