mirror of
https://github.com/ollama/ollama.git
synced 2025-08-02 13:13:20 +02:00
Harden sched TestLoad
Give the go routine a moment to deliver the expired event
This commit is contained in:
@@ -92,6 +92,7 @@ func TestLoad(t *testing.T) {
|
||||
runner := s.loaded["dummy_model_path"]
|
||||
require.NotNil(t, runner)
|
||||
require.Equal(t, uint(0), runner.refCount)
|
||||
time.Sleep(1 * time.Millisecond)
|
||||
require.Len(t, s.expiredCh, 1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user