mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: fix use of t.Logf where t.Log would suffice (#16328)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user