diff options
Diffstat (limited to 'internal/service/repository/fetch_test.go')
-rw-r--r-- | internal/service/repository/fetch_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/service/repository/fetch_test.go b/internal/service/repository/fetch_test.go index 4d1d9756d..a20160ad0 100644 --- a/internal/service/repository/fetch_test.go +++ b/internal/service/repository/fetch_test.go @@ -4,6 +4,7 @@ import ( "net" "os" "testing" + "time" "github.com/stretchr/testify/require" "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" @@ -153,6 +154,9 @@ func TestFetchFullServerRequiresAuthentication(t *testing.T) { 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...) @@ -193,5 +197,5 @@ func runFullServer(t *testing.T) (*grpc.Server, string) { go server.Serve(listener) - return server, "unix://" + serverSocketPath + return server, serverSocketPath } |