mirror of
https://github.com/mudler/LocalAI
synced 2026-05-24 09:28:23 +00:00
chore: fixup tests with defaults from constants
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
61afe4ca60
commit
f251bdee64
1 changed files with 2 additions and 3 deletions
|
|
@ -164,7 +164,7 @@ var _ = Describe("WatchDogOptions", func() {
|
|||
|
||||
enabled, threshold := wd.GetMemoryReclaimerSettings()
|
||||
Expect(enabled).To(BeFalse())
|
||||
Expect(threshold).To(Equal(0.95)) // default
|
||||
Expect(threshold).To(Equal(model.DefaultMemoryReclaimerThreshold)) // default
|
||||
})
|
||||
|
||||
It("should allow partial configuration", func() {
|
||||
|
|
@ -180,8 +180,7 @@ var _ = Describe("WatchDogOptions", func() {
|
|||
// Memory reclaimer should use defaults
|
||||
enabled, threshold := wd.GetMemoryReclaimerSettings()
|
||||
Expect(enabled).To(BeFalse())
|
||||
Expect(threshold).To(Equal(0.95))
|
||||
Expect(threshold).To(Equal(model.DefaultMemoryReclaimerThreshold))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue