diff --git a/ee/control/consumers/flareconsumer/flareconsumer_test.go b/ee/control/consumers/flareconsumer/flareconsumer_test.go index a1e3ca77e..15f2606fb 100644 --- a/ee/control/consumers/flareconsumer/flareconsumer_test.go +++ b/ee/control/consumers/flareconsumer/flareconsumer_test.go @@ -3,6 +3,7 @@ package flareconsumer import ( "bytes" "io" + "log/slog" "testing" "github.com/kolide/launcher/ee/control/consumers/flareconsumer/mocks" @@ -35,6 +36,7 @@ func TestFlareConsumer(t *testing.T) { t.Parallel() mockSack := knapsackMock.NewKnapsack(t) + mockSack.On("Slogger").Return(slog.New(slog.NewJSONHandler(io.Discard, nil))).Maybe() f := New(mockSack) f.flarer = tt.flarer(t) f.newFlareStream = func(note, uploadRequestURL string) (io.WriteCloser, error) {