micro-client-grpc/errors_test.go
Vasiliy Tolstov 3aa3132caa fix proto types
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-08 12:37:06 +03:00

18 lines
293 B
Go

package grpc_test
import (
"testing"
pb "github.com/unistack-org/micro-client-grpc/internal/errors"
"google.golang.org/protobuf/types/known/anypb"
)
func TestErrors(t *testing.T) {
any, err := anypb.New(&pb.Error{})
if err != nil {
t.Fatal(err)
}
t.Logf("cli any: %#+v\n", any)
}