Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Feb 9, 2024
1 parent dc8e797 commit 6ae92b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/osquery/extension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ func makeKnapsack(t *testing.T, db *bbolt.DB) types.Knapsack {
}

func TestNewExtensionEmptyEnrollSecret(t *testing.T) {
m := mocks.NewKnapsack(t)
m.On("Slogger").Return(multislogger.New().Logger)

e, err := NewExtension(context.TODO(), &mock.KolideService{}, nil, ExtensionOpts{})
e, err := NewExtension(context.TODO(), &mock.KolideService{}, m, ExtensionOpts{})
assert.NotNil(t, err)
assert.Nil(t, e)
}
Expand Down

0 comments on commit 6ae92b8

Please sign in to comment.