From 6ae92b87716854709a034ecbaeaf94e91d0ab47f Mon Sep 17 00:00:00 2001 From: Rebecca Mahany-Horton Date: Fri, 9 Feb 2024 17:08:34 -0500 Subject: [PATCH] Fix test --- pkg/osquery/extension_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/osquery/extension_test.go b/pkg/osquery/extension_test.go index 1c4ecc8dc..7a8c33615 100644 --- a/pkg/osquery/extension_test.go +++ b/pkg/osquery/extension_test.go @@ -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) }