test: fix use of t.Logf where t.Log would suffice (#16328)

This commit is contained in:
Mathias Fredriksson
2025-01-29 14:35:04 +00:00
committed by GitHub
parent 6caa29a29f
commit c069563af1
15 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -181,7 +181,7 @@ func assertLogs(t testing.TB, path string, expected ...string) {
logs := strings.Split(strings.TrimSpace(string(data)), "\n")
if !assert.Len(t, logs, len(expected)) {
t.Logf(string(data))
t.Log(string(data))
t.FailNow()
}
for i, log := range logs {
@@ -202,7 +202,7 @@ func assertLogsJSON(t testing.TB, path string, levelExpected ...string) {
logs := strings.Split(strings.TrimSpace(string(data)), "\n")
if !assert.Len(t, logs, len(levelExpected)/2) {
t.Logf(string(data))
t.Log(string(data))
t.FailNow()
}
for i, log := range logs {