Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Feb 11, 2024
1 parent 5f1c46a commit 04a8f66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/gitparse/gitparse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 04a8f66

Please sign in to comment.