Commit d8851cb7 authored by Daniel Hiltgen's avatar Daniel Hiltgen
Browse files

Harden sched TestLoad

Give the go routine a moment to deliver the expired event
parent 058f6cd2
...@@ -92,6 +92,7 @@ func TestLoad(t *testing.T) { ...@@ -92,6 +92,7 @@ func TestLoad(t *testing.T) {
runner := s.loaded["dummy_model_path"] runner := s.loaded["dummy_model_path"]
require.NotNil(t, runner) require.NotNil(t, runner)
require.Equal(t, uint(0), runner.refCount) require.Equal(t, uint(0), runner.refCount)
time.Sleep(1 * time.Millisecond)
require.Len(t, s.expiredCh, 1) require.Len(t, s.expiredCh, 1)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment