From 04a8f6697198443156457b55f4ba82d6d7a80c29 Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Sun, 11 Feb 2024 11:09:30 -0800 Subject: [PATCH] fix test --- pkg/gitparse/gitparse_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) }