lint: enable usetesting, disable tenv (#10594)

This commit is contained in:
Michael Yang
2025-05-08 11:42:14 -07:00
committed by GitHub
parent b585a58121
commit 6e9a7a2568
12 changed files with 55 additions and 87 deletions

View File

@@ -3,7 +3,6 @@
package backoff
import (
"context"
"testing"
"testing/synctest"
"time"
@@ -29,7 +28,7 @@ func TestLoopAllocs(t *testing.T) {
}
func BenchmarkLoop(b *testing.B) {
ctx := context.Background()
ctx := b.Context()
synctest.Run(func() {
for n := range Loop(ctx, 100*time.Millisecond) {
if n == b.N {