Allow the health checking service

pull/17443/head
Vijay Pai 6 years ago
parent f6c0908634
commit 83c6640e92
  1. 2
      test/cpp/end2end/server_interceptors_end2end_test.cc

@ -52,11 +52,13 @@ class LoggingInterceptor : public experimental::Interceptor {
experimental::ServerRpcInfo::Type type = info->type();
// Check that we use one of our standard methods with expected type.
// Also allow the health checking service.
// We accept BIDI_STREAMING for Echo in case it's an AsyncGenericService
// being tested (the GenericRpc test).
// The empty method is for the Unimplemented requests that arise
// when draining the CQ.
EXPECT_TRUE(
strstr(method, "/grpc.health") == method ||
(strcmp(method, "/grpc.testing.EchoTestService/Echo") == 0 &&
(type == experimental::ServerRpcInfo::Type::UNARY ||
type == experimental::ServerRpcInfo::Type::BIDI_STREAMING)) ||

Loading…
Cancel
Save