diff --git a/pkg/build/grpc_build_v1/build_service.pb.go b/pkg/build/grpc_build_v1/build_service.pb.go index 5d706b2..d876cfe 100644 --- a/pkg/build/grpc_build_v1/build_service.pb.go +++ b/pkg/build/grpc_build_v1/build_service.pb.go @@ -4,8 +4,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v4.24.3 +// protoc-gen-go v1.31.0 +// protoc v5.27.3 // source: pkg/build/grpc_build_v1/build_service.proto package grpc_build_v1 diff --git a/pkg/build/grpc_build_v1/build_service_grpc.pb.go b/pkg/build/grpc_build_v1/build_service_grpc.pb.go index 4757704..ceaeb50 100644 --- a/pkg/build/grpc_build_v1/build_service_grpc.pb.go +++ b/pkg/build/grpc_build_v1/build_service_grpc.pb.go @@ -1,7 +1,11 @@ +// Copyright 2024 tsuru authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v4.24.3 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v5.27.3 // source: pkg/build/grpc_build_v1/build_service.proto package grpc_build_v1 @@ -18,6 +22,10 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Build_Build_FullMethodName = "/grpc_build_v1.Build/Build" +) + // BuildClient is the client API for Build service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -35,7 +43,7 @@ func NewBuildClient(cc grpc.ClientConnInterface) BuildClient { } func (c *buildClient) Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (Build_BuildClient, error) { - stream, err := c.cc.NewStream(ctx, &Build_ServiceDesc.Streams[0], "/grpc_build_v1.Build/Build", opts...) + stream, err := c.cc.NewStream(ctx, &Build_ServiceDesc.Streams[0], Build_Build_FullMethodName, opts...) if err != nil { return nil, err } diff --git a/pkg/build/server_test.go b/pkg/build/server_test.go index 8da5bf7..71c397b 100644 --- a/pkg/build/server_test.go +++ b/pkg/build/server_test.go @@ -11,7 +11,6 @@ import ( "fmt" "io" "net" - "path/filepath" "testing" "github.com/stretchr/testify/assert" @@ -299,7 +298,7 @@ func TestBuild(t *testing.T) { func setupServer(t *testing.T, bs pb.BuildServer) string { t.Helper() - l, err := net.Listen("unix", filepath.Join(t.TempDir(), "server.sock")) + l, err := net.Listen("tcp", "127.0.0.1:0") require.NoError(t, err) s := grpc.NewServer() @@ -312,7 +311,7 @@ func setupServer(t *testing.T, bs pb.BuildServer) string { require.NoError(t, nerr) }() - return filepath.Join("unix://", l.Addr().String()) + return l.Addr().String() } func setupClient(t *testing.T, address string) pb.BuildClient {