Skip to content

Commit f251bde

Browse files
committed
chore: fixup tests with defaults from constants
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 61afe4c commit f251bde

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pkg/model/watchdog_options_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ var _ = Describe("WatchDogOptions", func() {
164164

165165
enabled, threshold := wd.GetMemoryReclaimerSettings()
166166
Expect(enabled).To(BeFalse())
167-
Expect(threshold).To(Equal(0.95)) // default
167+
Expect(threshold).To(Equal(model.DefaultMemoryReclaimerThreshold)) // default
168168
})
169169

170170
It("should allow partial configuration", func() {
@@ -180,8 +180,7 @@ var _ = Describe("WatchDogOptions", func() {
180180
// Memory reclaimer should use defaults
181181
enabled, threshold := wd.GetMemoryReclaimerSettings()
182182
Expect(enabled).To(BeFalse())
183-
Expect(threshold).To(Equal(0.95))
183+
Expect(threshold).To(Equal(model.DefaultMemoryReclaimerThreshold))
184184
})
185185
})
186186
})
187-

0 commit comments

Comments
 (0)