diff --git a/pkg/gitparse/gitparse_test.go b/pkg/gitparse/gitparse_test.go index e7b93ca6deaa..f13ec1996504 100644 --- a/pkg/gitparse/gitparse_test.go +++ b/pkg/gitparse/gitparse_test.go @@ -698,8 +698,9 @@ func TestIndividualCommitParsing(t *testing.T) { } func newBufferedFileWriterWithContent(content []byte) *bufferedfilewriter.BufferedFileWriter { - b := bufferedfilewriter.New() - _, err := b.Write(context.Background(), content) // Using Write method to add content + ctx := context.Background() + b := bufferedfilewriter.New(ctx) + _, err := b.Write(ctx, content) // Using Write method to add content if err != nil { panic(err) }