update for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-10-01 01:37:54 +03:00
parent 7f17a3e5b0
commit 5a63953d3f
5 changed files with 21 additions and 34 deletions

View File

@@ -27,7 +27,7 @@ type testServer struct {
func (g *testServer) Call(ctx context.Context, in *pb.Request) (*pb.Response, error) {
if in.Name == "Error" {
return nil, &errors.Error{Id: "id", Code: 99, Detail: "detail"}
return nil, &errors.Error{ID: "id", Code: 99, Detail: "detail"}
}
return &pb.Response{Msg: "Hello " + in.Name}, nil
}
@@ -135,7 +135,7 @@ func TestGRPCClient(t *testing.T) {
t.Fatalf("invalid error received %#+v\n", err)
}
if verr.Code != 99 && verr.Id != "id" && verr.Detail != "detail" {
if verr.Code != 99 && verr.ID != "id" && verr.Detail != "detail" {
t.Fatalf("invalid error received %#+v\n", verr)
}
}