Harden sched TestLoad

Give the go routine a moment to deliver the expired event
This commit is contained in:
Daniel Hiltgen 2024-04-23 13:07:16 -07:00
parent 058f6cd2cc
commit d8851cb7a0

View file

@ -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)
}