diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2018-11-15 13:46:01 +0300 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2018-11-15 13:46:01 +0300 |
commit | e03f1b8dbbdf8c4c6e570e9f0be8946e907d054e (patch) | |
tree | 1137b2269da8a65e6a86226349e22b1d29b1b906 | |
parent | f3840074e88b5c1cf6b78eaa28c5cfd6e1d76e2c (diff) |
make format on the gitaly codebasean-gitaly-format
-rw-r--r-- | internal/service/blob/get_blob_test.go | 4 | ||||
-rw-r--r-- | internal/service/commit/count_commits_test.go | 4 | ||||
-rw-r--r-- | internal/service/diff/commit_test.go | 2 | ||||
-rw-r--r-- | 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 4f5bb7a37..d2a94306d 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 ec0acae17..1142448f0 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 6c0feb938..2063a876f 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 679270f7a..547e07e76 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 } |