mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-12 22:33:54 -04:00
chore: fixup tests with defaults from constants
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
1 parent
61afe4ca60
commit
f251bdee64
1 file changed
+2
-3
@@ -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))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user