Merge branch 'main' into dependabot/go_modules/contrib/opensergo/golang.org/x/net-0.10.0

dependabot/go_modules/contrib/opensergo/golang.org/x/net-0.10.0
Weizhen Wang 2 years ago committed by GitHub
commit 142f707c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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 {

Loading…
Cancel
Save