From e03f1b8dbbdf8c4c6e570e9f0be8946e907d054e Mon Sep 17 00:00:00 2001 From: Andrew Newdigate Date: Thu, 15 Nov 2018 10:46:01 +0000 Subject: [PATCH] make format on the gitaly codebase --- internal/service/blob/get_blob_test.go | 4 ++-- internal/service/commit/count_commits_test.go | 4 ++-- internal/service/diff/commit_test.go | 2 +- internal/service/smarthttp/receive_pack_test.go | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/service/blob/get_blob_test.go b/internal/service/blob/get_blob_test.go index 4f5bb7a37c6..d2a94306df0 100644 --- a/internal/service/blob/get_blob_test.go +++ b/internal/service/blob/get_blob_test.go @@ -158,8 +158,8 @@ func TestFailedGetBlobRequestDueToValidationError(t *testing.T) { rpcRequests := []gitalypb.GetBlobRequest{ {Repository: &gitalypb.Repository{StorageName: "fake", RelativePath: "path"}, Oid: oid}, // Repository doesn't exist - {Repository: nil, Oid: oid}, // Repository is nil - {Repository: testRepo}, // Oid is empty + {Repository: nil, Oid: oid}, // Repository is nil + {Repository: testRepo}, // Oid is empty } for _, rpcRequest := range rpcRequests { diff --git a/internal/service/commit/count_commits_test.go b/internal/service/commit/count_commits_test.go index ec0acae174c..1142448f09d 100644 --- a/internal/service/commit/count_commits_test.go +++ b/internal/service/commit/count_commits_test.go @@ -177,8 +177,8 @@ func TestFailedCountCommitsRequestDueToValidationError(t *testing.T) { rpcRequests := []gitalypb.CountCommitsRequest{ {Repository: &gitalypb.Repository{StorageName: "fake", RelativePath: "path"}, Revision: revision}, // Repository doesn't exist - {Repository: nil, Revision: revision}, // Repository is nil - {Repository: testRepo, Revision: nil, All: false}, // Revision is empty and All is false + {Repository: nil, Revision: revision}, // Repository is nil + {Repository: testRepo, Revision: nil, All: false}, // Revision is empty and All is false } for _, rpcRequest := range rpcRequests { diff --git a/internal/service/diff/commit_test.go b/internal/service/diff/commit_test.go index 6c0feb938fa..2063a876f22 100644 --- a/internal/service/diff/commit_test.go +++ b/internal/service/diff/commit_test.go @@ -406,7 +406,7 @@ func TestSuccessfulCommitDiffRequestWithIgnoreWhitespaceChange(t *testing.T) { RightCommitId: rightCommit, LeftCommitId: leftCommit, IgnoreWhitespaceChange: true, - Paths: entry.paths, + Paths: entry.paths, } ctx, cancel := context.WithCancel(context.Background()) diff --git a/internal/service/smarthttp/receive_pack_test.go b/internal/service/smarthttp/receive_pack_test.go index 679270f7ac1..547e07e7674 100644 --- a/internal/service/smarthttp/receive_pack_test.go +++ b/internal/service/smarthttp/receive_pack_test.go @@ -267,8 +267,8 @@ func TestFailedReceivePackRequestDueToValidationError(t *testing.T) { defer conn.Close() rpcRequests := []gitalypb.PostReceivePackRequest{ - {Repository: &gitalypb.Repository{StorageName: "fake", RelativePath: "path"}, GlId: "user-123"}, // Repository doesn't exist - {Repository: nil, GlId: "user-123"}, // Repository is nil + {Repository: &gitalypb.Repository{StorageName: "fake", RelativePath: "path"}, GlId: "user-123"}, // Repository doesn't exist + {Repository: nil, GlId: "user-123"}, // Repository is nil {Repository: &gitalypb.Repository{StorageName: "default", RelativePath: "path/to/repo"}, GlId: ""}, // Empty GlId {Repository: &gitalypb.Repository{StorageName: "default", RelativePath: "path/to/repo"}, GlId: "user-123", Data: []byte("Fail")}, // Data exists on first request } -- GitLab