Harden sched TestLoad
Give the go routine a moment to deliver the expired event
This commit is contained in:
parent
058f6cd2cc
commit
d8851cb7a0
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue