From 7f6cefd9c9ab913346983ab862a4b5799a616ff4 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Sun, 19 Jul 2020 15:54:33 +0100 Subject: [PATCH] fix grpc test --- server/grpc/grpc_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/grpc/grpc_test.go b/server/grpc/grpc_test.go index 2a74f97a..d0b0aab7 100644 --- a/server/grpc/grpc_test.go +++ b/server/grpc/grpc_test.go @@ -10,6 +10,7 @@ import ( "github.com/micro/go-micro/v2/client" gcli "github.com/micro/go-micro/v2/client/grpc" "github.com/micro/go-micro/v2/errors" + pberr "github.com/micro/go-micro/v2/errors/proto" rmemory "github.com/micro/go-micro/v2/registry/memory" "github.com/micro/go-micro/v2/router" "github.com/micro/go-micro/v2/server" @@ -201,7 +202,7 @@ func TestGRPCServer(t *testing.T) { if !ok { t.Fatalf("invalid error received %#+v\n", err) } - verr, ok := st.Details()[0].(*errors.Error) + verr, ok := st.Details()[0].(*pberr.Error) if !ok { t.Fatalf("invalid error received %#+v\n", st.Details()[0]) }