From f251bdee64c25bcc5dfbd133eff68c6fb2eeac68 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 16 Dec 2025 21:26:55 +0000 Subject: [PATCH] chore: fixup tests with defaults from constants Signed-off-by: Ettore Di Giacinto --- pkg/model/watchdog_options_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/model/watchdog_options_test.go b/pkg/model/watchdog_options_test.go index 2710408f6..387343488 100644 --- a/pkg/model/watchdog_options_test.go +++ b/pkg/model/watchdog_options_test.go @@ -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)) }) }) }) -