diff options
Diffstat (limited to 'internal/gitaly/service/blob/get_blobs_test.go')
-rw-r--r-- | internal/gitaly/service/blob/get_blobs_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/gitaly/service/blob/get_blobs_test.go b/internal/gitaly/service/blob/get_blobs_test.go index a6543e877..b53b4b60f 100644 --- a/internal/gitaly/service/blob/get_blobs_test.go +++ b/internal/gitaly/service/blob/get_blobs_test.go @@ -7,13 +7,14 @@ import ( "testing" "github.com/stretchr/testify/require" + "gitlab.com/gitlab-org/gitaly/internal/git/gittest" "gitlab.com/gitlab-org/gitaly/internal/testhelper" "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb" "google.golang.org/grpc/codes" ) func TestSuccessfulGetBlobsRequest(t *testing.T) { - _, repo, repoPath, client := setup(t) + cfg, repo, repoPath, client := setup(t) expectedBlobs := []*gitalypb.GetBlobsResponse{ { @@ -57,7 +58,7 @@ func TestSuccessfulGetBlobsRequest(t *testing.T) { revision := "ef16b8d2b204706bd8dc211d4011a5bffb6fc0c2" limits := []int{-1, 0, 10 * 1024 * 1024} - testhelper.MustRunCommand(t, nil, "git", "-C", repoPath, "worktree", "add", "blobs-sandbox", revision) + gittest.Exec(t, cfg, "-C", repoPath, "worktree", "add", "blobs-sandbox", revision) var revisionPaths []*gitalypb.GetBlobsRequest_RevisionPath for _, blob := range expectedBlobs { |