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:
Adam Ryman 2016-11-03 17:21:29 -07:00
Родитель 3eb4b91377
Коммит bb587c0c3c
2 изменённых файлов: 2 добавлений и 9 удалений

Просмотреть файл

@ -10,7 +10,7 @@ import (
) )
// NewService returns a naïve, stateless implementation of Service. // NewService returns a naïve, stateless implementation of Service.
func NewService() Service { func NewService() pb.TransportPermutationsServer {
return transportService{} return transportService{}
} }
@ -63,10 +63,3 @@ func (s transportService) CtxToCtx(ctx context.Context, in *pb.MetaRequest) (*pb
return &resp, nil 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 var logger log.Logger
logger = log.NewNopLogger() logger = log.NewNopLogger()
var service handler.Service var service pb.TransportPermutationsServer
{ {
service = handler.NewService() service = handler.NewService()
} }