From 4a56b5669defa65e595301a8ad9dcc49496cc11c Mon Sep 17 00:00:00 2001 From: Xudong Cai Date: Tue, 9 May 2023 14:36:47 +0800 Subject: [PATCH] chore: remove the dependency of grpc_testing module (#2824) --- errors/errors_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/errors/errors_test.go b/errors/errors_test.go index 5196d0b65..c5f4d42be 100644 --- a/errors/errors_test.go +++ b/errors/errors_test.go @@ -9,7 +9,6 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "google.golang.org/grpc/test/grpc_testing" ) type TestError struct{ message string } @@ -56,7 +55,7 @@ func TestErrors(t *testing.T) { t.Errorf("got %+v want %+v", se, err) } - gs2, _ := status.New(codes.InvalidArgument, "bad request").WithDetails(&grpc_testing.Empty{}) + gs2 := status.New(codes.InvalidArgument, "bad request") se2 := FromError(gs2.Err()) // codes.InvalidArgument should convert to http.StatusBadRequest if se2.Code != http.StatusBadRequest {