Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zackattack01 committed Nov 11, 2024
1 parent 38c2241 commit 7af2d45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ee/watchdog/controller_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
5 changes: 3 additions & 2 deletions ee/watchdog/controller_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7af2d45

Please sign in to comment.