Enable all tests (fix #25)
This commit is contained in:
@@ -3,9 +3,10 @@ package {{.File.Package}}_endpoints
|
||||
{{$file := .File}}
|
||||
|
||||
import (
|
||||
context "context"
|
||||
"fmt"
|
||||
|
||||
context "golang.org/x/net/context"
|
||||
oldcontext "golang.org/x/net/context"
|
||||
pb "{{cat .GoPWD "/" .DestinationDir | nospace | clean}}/pb"
|
||||
"github.com/go-kit/kit/endpoint"
|
||||
)
|
||||
@@ -43,7 +44,7 @@ type Endpoints struct {
|
||||
return fmt.Errorf("not implemented")
|
||||
}
|
||||
{{else}}
|
||||
func (e *Endpoints){{.Name}}(ctx context.Context, in *pb.{{.InputType | splitArray "." | last}}) (*pb.{{.OutputType | splitArray "." | last}}, error) {
|
||||
func (e *Endpoints){{.Name}}(ctx oldcontext.Context, in *pb.{{.InputType | splitArray "." | last}}) (*pb.{{.OutputType | splitArray "." | last}}, error) {
|
||||
out, err := e.{{.Name}}Endpoint(ctx, in)
|
||||
if err != nil {
|
||||
return &pb.{{.OutputType | splitArray "." | last}}{ErrMsg: err.Error()}, err
|
||||
|
Reference in New Issue
Block a user