DoUnimplementedMethod attempts to call an unimplemented method.
(ctx context.Context, cc *grpc.ClientConn)
| 640 | |
| 641 | // DoUnimplementedMethod attempts to call an unimplemented method. |
| 642 | func DoUnimplementedMethod(ctx context.Context, cc *grpc.ClientConn) { |
| 643 | var req, reply proto.Message |
| 644 | if err := cc.Invoke(ctx, "/grpc.testing.TestService/UnimplementedCall", req, reply); err == nil || status.Code(err) != codes.Unimplemented { |
| 645 | logger.Fatalf("ClientConn.Invoke(_, _, _, _, _) = %v, want error code %s", err, codes.Unimplemented) |
| 646 | } |
| 647 | } |
| 648 | |
| 649 | // DoPickFirstUnary runs multiple RPCs (rpcCount) and checks that all requests |
| 650 | // are sent to the same backend. |