mirror of
https://github.com/ollama/ollama.git
synced 2025-11-11 23:37:50 +01:00
lint: enable usetesting, disable tenv (#10594)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user