Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
d8851cb7
Commit
d8851cb7
authored
Apr 23, 2024
by
Daniel Hiltgen
Browse files
Harden sched TestLoad
Give the go routine a moment to deliver the expired event
parent
058f6cd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
server/sched_test.go
server/sched_test.go
+1
-0
No files found.
server/sched_test.go
View file @
d8851cb7
...
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment