mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
fix concurrency test
This commit is contained in:
parent
50ee8b5f56
commit
7ed367419e
4 changed files with 17 additions and 18 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue