Fix transport tests after removing handler service interface
These tests copy a handler file that had old generated code in it. The file was not updated after everything was switched to the .pb.go interface.
This commit is contained in:
Родитель
3eb4b91377
Коммит
bb587c0c3c
|
@ -10,7 +10,7 @@ import (
|
|||
)
|
||||
|
||||
// NewService returns a naïve, stateless implementation of Service.
|
||||
func NewService() Service {
|
||||
func NewService() pb.TransportPermutationsServer {
|
||||
return transportService{}
|
||||
}
|
||||
|
||||
|
@ -63,10 +63,3 @@ func (s transportService) CtxToCtx(ctx context.Context, in *pb.MetaRequest) (*pb
|
|||
|
||||
return &resp, nil
|
||||
}
|
||||
|
||||
type Service interface {
|
||||
GetWithQuery(ctx context.Context, in *pb.GetWithQueryRequest) (*pb.GetWithQueryResponse, error)
|
||||
GetWithRepeatedQuery(ctx context.Context, in *pb.GetWithRepeatedQueryRequest) (*pb.GetWithRepeatedQueryResponse, error)
|
||||
PostWithNestedMessageBody(ctx context.Context, in *pb.PostWithNestedMessageBodyRequest) (*pb.PostWithNestedMessageBodyResponse, error)
|
||||
CtxToCtx(ctx context.Context, in *pb.MetaRequest) (*pb.MetaResponse, error)
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ func TestMain(m *testing.M) {
|
|||
var logger log.Logger
|
||||
logger = log.NewNopLogger()
|
||||
|
||||
var service handler.Service
|
||||
var service pb.TransportPermutationsServer
|
||||
{
|
||||
service = handler.NewService()
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче