setHealthServingStatus is a helper function to set the health status.
(service string, status healthpb.HealthCheckResponse_ServingStatus)
| 727 | |
| 728 | // setHealthServingStatus is a helper function to set the health status. |
| 729 | func (te *test) setHealthServingStatus(service string, status healthpb.HealthCheckResponse_ServingStatus) { |
| 730 | hs, ok := te.hSrv.(*health.Server) |
| 731 | if !ok { |
| 732 | panic(fmt.Sprintf("SetServingStatus(%v, %v) called for health server of type %T", service, status, hs)) |
| 733 | } |
| 734 | hs.SetServingStatus(service, status) |
| 735 | } |
| 736 | |
| 737 | type nopCompressor struct { |
| 738 | grpc.Compressor |
no test coverage detected