chore: fixup tests with defaults from constants

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2025-12-16 21:26:55 +00:00
parent 61afe4ca60
commit f251bdee64

View File

@@ -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))
})
})
})