diff options
Diffstat (limited to 'internal/gitaly/service/operations/update_branches_test.go')
-rw-r--r-- | internal/gitaly/service/operations/update_branches_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/gitaly/service/operations/update_branches_test.go b/internal/gitaly/service/operations/update_branches_test.go index cd55343c6..0af47e90e 100644 --- a/internal/gitaly/service/operations/update_branches_test.go +++ b/internal/gitaly/service/operations/update_branches_test.go @@ -8,7 +8,6 @@ import ( "github.com/stretchr/testify/require" "gitlab.com/gitlab-org/gitaly/internal/git/log" - "gitlab.com/gitlab-org/gitaly/internal/gitaly/config" "gitlab.com/gitlab-org/gitaly/internal/metadata/featureflag" "gitlab.com/gitlab-org/gitaly/internal/testhelper" "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb" @@ -31,8 +30,6 @@ func testSuccessfulUserUpdateBranchRequest(t *testing.T, ctx context.Context) { testRepo, _, cleanupFn := testhelper.NewTestRepo(t) defer cleanupFn() - locator := config.NewLocator(config.Config) - serverSocketPath, stop := runOperationServiceServer(t) defer stop() @@ -52,7 +49,7 @@ func testSuccessfulUserUpdateBranchRequest(t *testing.T, ctx context.Context) { require.NoError(t, err) require.Empty(t, response.PreReceiveError) - branchCommit, err := log.GetCommit(ctx, locator, testRepo, updateBranchName) + branchCommit, err := log.GetCommit(ctx, testRepo, updateBranchName) require.NoError(t, err) require.Equal(t, string(newrev), branchCommit.Id) |