mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 22:33:34 +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")
|
logStrLines := strings.Split(logStr, "\n")
|
||||||
dataFormatLines := strings.Split(data.format, "\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))
|
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