MCPcopy
hub / github.com/grpc/grpc-go / TestHealthCheckDisable

Method TestHealthCheckDisable

test/healthcheck_test.go:757–765  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

755}
756
757func (s) TestHealthCheckDisable(t *testing.T) {
758 _, lis, ts := setupServer(t, nil)
759 ts.SetServingStatus("foo", healthpb.HealthCheckResponse_SERVING)
760
761 // test client side disabling configuration.
762 testHealthCheckDisableWithDialOption(t, lis.Addr().String())
763 testHealthCheckDisableWithBalancer(t, lis.Addr().String())
764 testHealthCheckDisableWithServiceConfig(t, lis.Addr().String())
765}
766
767func (s) TestHealthCheckChannelzCountingCallSuccess(t *testing.T) {
768 watchFunc := func(_ *testHealthServer, in *healthpb.HealthCheckRequest, _ healthgrpc.Health_WatchServer) error {

Callers

nothing calls this directly

Calls 7

setupServerFunction · 0.85
StringMethod · 0.65
SetServingStatusMethod · 0.45
AddrMethod · 0.45

Tested by

no test coverage detected