Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/service/operations/squash_test.go')
-rw-r--r--internal/service/operations/squash_test.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/internal/service/operations/squash_test.go b/internal/service/operations/squash_test.go
index 7115f7977..aec3954ba 100644
--- a/internal/service/operations/squash_test.go
+++ b/internal/service/operations/squash_test.go
@@ -30,8 +30,8 @@ func TestSuccessfulUserSquashRequest(t *testing.T) {
ctx, cancel := testhelper.Context()
defer cancel()
- server, serverSocketPath := runOperationServiceServer(t)
- defer server.Stop()
+ stop, serverSocketPath := runOperationServiceServer(t)
+ defer stop()
client, conn := NewOperationClient(t, serverSocketPath)
defer conn.Close()
@@ -80,8 +80,8 @@ func TestSuccessfulUserSquashRequestWith3wayMerge(t *testing.T) {
ctx, cancel := testhelper.Context()
defer cancel()
- server, serverSocketPath := runOperationServiceServer(t)
- defer server.Stop()
+ stop, serverSocketPath := runOperationServiceServer(t)
+ defer stop()
client, conn := NewOperationClient(t, serverSocketPath)
defer conn.Close()
@@ -128,8 +128,8 @@ func TestSplitIndex(t *testing.T) {
ctx, cancel := testhelper.Context()
defer cancel()
- server, serverSocketPath := runOperationServiceServer(t)
- defer server.Stop()
+ stop, serverSocketPath := runOperationServiceServer(t)
+ defer stop()
client, conn := NewOperationClient(t, serverSocketPath)
defer conn.Close()
@@ -159,8 +159,8 @@ func TestSquashRequestWithRenamedFiles(t *testing.T) {
ctx, cancel := testhelper.Context()
defer cancel()
- server, serverSocketPath := runOperationServiceServer(t)
- defer server.Stop()
+ stop, serverSocketPath := runOperationServiceServer(t)
+ defer stop()
client, conn := NewOperationClient(t, serverSocketPath)
defer conn.Close()
@@ -221,8 +221,8 @@ func TestSuccessfulUserSquashRequestWithMissingFileOnTargetBranch(t *testing.T)
ctx, cancel := testhelper.Context()
defer cancel()
- server, serverSocketPath := runOperationServiceServer(t)
- defer server.Stop()
+ stop, serverSocketPath := runOperationServiceServer(t)
+ defer stop()
client, conn := NewOperationClient(t, serverSocketPath)
defer conn.Close()
@@ -248,8 +248,8 @@ func TestSuccessfulUserSquashRequestWithMissingFileOnTargetBranch(t *testing.T)
}
func TestFailedUserSquashRequestDueToValidations(t *testing.T) {
- server, serverSocketPath := runOperationServiceServer(t)
- defer server.Stop()
+ stop, serverSocketPath := runOperationServiceServer(t)
+ defer stop()
client, conn := NewOperationClient(t, serverSocketPath)
defer conn.Close()