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/remote/testhelper_test.go')
-rw-r--r--internal/service/remote/testhelper_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/service/remote/testhelper_test.go b/internal/service/remote/testhelper_test.go
index 152c5b2be..3f37b1c60 100644
--- a/internal/service/remote/testhelper_test.go
+++ b/internal/service/remote/testhelper_test.go
@@ -5,7 +5,6 @@ import (
"net"
"os"
"testing"
- "time"
"gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver"
@@ -51,15 +50,12 @@ func runRemoteServiceServer(t *testing.T) (*grpc.Server, string) {
go grpcServer.Serve(listener)
- return grpcServer, serverSocketPath
+ return grpcServer, "unix://" + serverSocketPath
}
func NewRemoteClient(t *testing.T, serverSocketPath string) (gitalypb.RemoteServiceClient, *grpc.ClientConn) {
connOpts := []grpc.DialOption{
grpc.WithInsecure(),
- grpc.WithDialer(func(addr string, timeout time.Duration) (net.Conn, error) {
- return net.DialTimeout("unix", addr, timeout)
- }),
}
conn, err := grpc.Dial(serverSocketPath, connOpts...)
if err != nil {