mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: update testutil chan helpers (#17408)
This commit is contained in:
@@ -118,7 +118,7 @@ func TestHeartbeat(t *testing.T) {
|
||||
})
|
||||
|
||||
for i := 0; i < numBeats; i++ {
|
||||
testutil.RequireRecvCtx(ctx, t, heartbeatChan)
|
||||
testutil.TryReceive(ctx, t, heartbeatChan)
|
||||
}
|
||||
// goleak.VerifyTestMain ensures that the heartbeat goroutine does not leak
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user