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
@@ -547,8 +547,8 @@ func TestAcquirer_MatchTags(t *testing.T) {
s := fmt.Sprintf("| %s | %s | %s | %s |", kvs(tt.acquireJobTags), kvs(tt.provisionerJobTags), sameOrg, acquire)
lines = append(lines, s)
}
t.Logf("You can paste this into docs/admin/provisioners.md")
t.Logf(strings.Join(lines, "\n"))
t.Log("You can paste this into docs/admin/provisioners.md")
t.Log(strings.Join(lines, "\n"))
})
}
@@ -101,7 +101,7 @@ func TestHeartbeat(t *testing.T) {
ctx := testutil.Context(t, testutil.WaitShort)
heartbeatChan := make(chan struct{})
heartbeatFn := func(hbCtx context.Context) error {
t.Logf("heartbeat")
t.Log("heartbeat")
select {
case <-hbCtx.Done():
return hbCtx.Err()