diff options
author | yang-g <yangg@google.com> | 2017-02-07 13:50:36 -0800 |
---|---|---|
committer | yang-g <yangg@google.com> | 2017-02-07 13:50:36 -0800 |
commit | 076bac017b200accb8071e569b471f118fc3ba32 (patch) | |
tree | 11bc758fb3908805642e4cce1fcbd26e4e2c6ad5 /test/cpp/end2end | |
parent | 13a537bcae9d21587deda4ca70428bb254e6daa0 (diff) |
Remove async
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r-- | test/cpp/end2end/health_service_end2end_test.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/cpp/end2end/health_service_end2end_test.cc b/test/cpp/end2end/health_service_end2end_test.cc index 8a6a9886c9..3d51007857 100644 --- a/test/cpp/end2end/health_service_end2end_test.cc +++ b/test/cpp/end2end/health_service_end2end_test.cc @@ -273,12 +273,13 @@ TEST_F(HealthServiceEnd2endTest, DefaultHealthServiceAsyncOnly) { SetUpServer(false, true, false, nullptr); cq_thread_ = std::thread(LoopCompletionQueue, cq_.get()); - VerifyHealthCheckService(); + HealthCheckServiceInterface* default_service = + server_->GetHealthCheckService(); + EXPECT_TRUE(default_service == nullptr); - // The default service has a size limit of the service name. - const grpc::string kTooLongServiceName(201, 'x'); - SendHealthCheckRpc(kTooLongServiceName, - Status(StatusCode::INVALID_ARGUMENT, "")); + ResetStubs(); + + SendHealthCheckRpc("", Status(StatusCode::UNIMPLEMENTED, "")); } // Provide an empty service to disable the default service. |