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
orangecat
ollama
Commits
0963c650
"doc/en/fp8_kernel.md" did not exist on "4dc5518e4d2ae89a687709bcbe05d2f3f80e00ad"
Unverified
Commit
0963c650
authored
May 06, 2024
by
Daniel Hiltgen
Committed by
GitHub
May 06, 2024
Browse files
Merge pull request #4208 from dhiltgen/fix_sched_test
Fix stale test logic
parents
ed740a25
0a954e50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
server/sched_test.go
server/sched_test.go
+2
-4
No files found.
server/sched_test.go
View file @
0963c650
...
...
@@ -352,11 +352,9 @@ func TestGetRunner(t *testing.T) {
scenario1c
.
req
.
model
.
ModelPath
=
"bad path"
slog
.
Info
(
"scenario1c"
)
successCh1c
,
errCh1c
:=
s
.
GetRunner
(
scenario1c
.
ctx
,
scenario1c
.
req
.
model
,
scenario1c
.
req
.
opts
,
scenario1c
.
req
.
sessionDuration
)
require
.
Len
(
t
,
s
.
pendingReqCh
,
0
)
require
.
Len
(
t
,
successCh1c
,
0
)
require
.
Len
(
t
,
errCh1c
,
0
)
// Starts in pending channel, then should be quickly processsed to return an error
time
.
Sleep
(
5
*
time
.
Millisecond
)
require
.
Len
(
t
,
successCh1c
,
0
)
s
.
loadedMu
.
Lock
()
require
.
Len
(
t
,
s
.
loaded
,
0
)
s
.
loadedMu
.
Unlock
()
...
...
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