Skip to content

Commit bdea3a6

Browse files
committed
fix(diff): pass the context to OpenRepositoryLocal in the tail section test
OpenRepositoryLocal gained a cat-file batch context parameter in #38684, which broke the build of this package's tests after rebasing onto main. Assisted-by: Codet
1 parent 743d01c commit bdea3a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/gitdiff/gitdiff_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ func TestGetDiffForRender_TailSectionLineCounts(t *testing.T) {
650650
beforeContent := buildContent("")
651651
afterContent := buildContent("line 05 CHANGED")
652652

653-
gitRepo, err := git.OpenRepositoryLocal(repoDir)
653+
gitRepo, err := git.OpenRepositoryLocal(t.Context(), repoDir)
654654
require.NoError(t, err)
655655
defer gitRepo.Close()
656656

0 commit comments

Comments
 (0)