mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 07:46:59 +00: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