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

@@ -16,7 +16,7 @@ func TestLLMServerCompletionFormat(t *testing.T) {
// of a mess, and but it's good enough, until we can refactoring the
// Completion method to be more testable.
ctx, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithCancel(t.Context())
s := &llmServer{
sem: semaphore.NewWeighted(1), // required to prevent nil panic
}