fix concurrency test

This commit is contained in:
Michael Yang 2024-08-05 16:34:54 -07:00
parent 50ee8b5f56
commit 7ed367419e
4 changed files with 17 additions and 18 deletions

View file

@ -29,7 +29,7 @@ func TestMaxQueue(t *testing.T) {
// Also note that by default Darwin can't sustain > ~128 connections without adjusting limits
threadCount := 32
if maxQueue := envconfig.MaxQueue(); maxQueue != 0 {
threadCount = maxQueue
threadCount = int(maxQueue)
} else {
t.Setenv("OLLAMA_MAX_QUEUE", strconv.Itoa(threadCount))
}