From 7af2d45fddeb866ce31996977f9f08854b031fbc Mon Sep 17 00:00:00 2001 From: zackattack01 Date: Mon, 11 Nov 2024 15:34:32 -0500 Subject: [PATCH] test updates --- ee/watchdog/controller_other.go | 2 +- ee/watchdog/controller_windows_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ee/watchdog/controller_other.go b/ee/watchdog/controller_other.go index 0b902e585..b221cc22d 100644 --- a/ee/watchdog/controller_other.go +++ b/ee/watchdog/controller_other.go @@ -12,7 +12,7 @@ import ( type WatchdogController struct{} -func NewController(_ context.Context, _ types.Knapsack) (*WatchdogController, error) { +func NewController(_ context.Context, _ types.Knapsack, _ string) (*WatchdogController, error) { return nil, nil } diff --git a/ee/watchdog/controller_windows_test.go b/ee/watchdog/controller_windows_test.go index fdd42fefc..957f66f7c 100644 --- a/ee/watchdog/controller_windows_test.go +++ b/ee/watchdog/controller_windows_test.go @@ -21,9 +21,10 @@ func TestInterrupt_Multiple(t *testing.T) { mockKnapsack := typesmocks.NewKnapsack(t) mockKnapsack.On("RootDirectory").Return(tempRootDir) mockKnapsack.On("Slogger").Return(testSlogger) - mockKnapsack.On("LauncherWatchdogEnabled").Return(false) + mockKnapsack.On("Identifier").Return("kolide-k2") + mockKnapsack.On("KolideServerURL").Return("k2device.kolide.com") - controller, _ := NewController(context.TODO(), mockKnapsack) + controller, _ := NewController(context.TODO(), mockKnapsack, "") // Let the handler run for a bit go controller.Run()