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/server/info_test.go')
-rw-r--r--internal/service/server/info_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/service/server/info_test.go b/internal/service/server/info_test.go
index 5f10b0774..374b4c785 100644
--- a/internal/service/server/info_test.go
+++ b/internal/service/server/info_test.go
@@ -3,7 +3,6 @@ package server
import (
"net"
"testing"
- "time"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
@@ -71,15 +70,12 @@ func runServer(t *testing.T) (*grpc.Server, string) {
go server.Serve(listener)
- return server, serverSocketPath
+ return server, "unix://" + serverSocketPath
}
func newServerClient(t *testing.T, serverSocketPath string) (gitalypb.ServerServiceClient, *grpc.ClientConn) {
connOpts := []grpc.DialOption{
grpc.WithInsecure(),
- grpc.WithDialer(func(addr string, timeout time.Duration) (net.Conn, error) {
- return net.DialTimeout("unix", addr, timeout)
- }),
grpc.WithPerRPCCredentials(gitalyauth.RPCCredentials(testhelper.RepositoryAuthToken)),
}
conn, err := grpc.Dial(serverSocketPath, connOpts...)