Fix server interceptors end2end test

pull/19142/head
Yash Tibrewal 6 years ago
parent 6a2da31a36
commit 66c7560fc4
  1. 4
      test/cpp/end2end/server_interceptors_end2end_test.cc

@ -120,7 +120,9 @@ class LoggingInterceptor : public experimental::Interceptor {
experimental::InterceptionHookPoints::POST_RECV_MESSAGE)) {
EchoResponse* resp =
static_cast<EchoResponse*>(methods->GetRecvMessage());
EXPECT_TRUE(resp->message().find("Hello") == 0);
if (resp != nullptr) {
EXPECT_TRUE(resp->message().find("Hello") == 0);
}
}
if (methods->QueryInterceptionHookPoint(
experimental::InterceptionHookPoints::POST_RECV_CLOSE)) {

Loading…
Cancel
Save