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