Skip to content

Commit

Permalink
fix data race
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Jan 17, 2025
1 parent 87eb256 commit ae3df3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ee/localserver/krypto-ec-middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/kolide/launcher/ee/localserver/mocks"

"github.com/kolide/launcher/pkg/log/multislogger"
"github.com/kolide/launcher/pkg/threadsafebuffer"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -143,7 +144,7 @@ func TestKryptoEcMiddleware(t *testing.T) {
t.Run(req.Method, func(t *testing.T) {
t.Parallel()

var logBytes bytes.Buffer
var logBytes threadsafebuffer.ThreadSafeBuffer
slogger := multislogger.New(slog.NewTextHandler(&logBytes, &slog.HandlerOptions{
Level: slog.LevelDebug,
})).Logger
Expand Down

0 comments on commit ae3df3f

Please sign in to comment.