diff options
author | Craig Tiller <ctiller@google.com> | 2015-12-09 15:50:39 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-12-09 15:50:39 -0800 |
commit | fedb761f51aaa4cd403f301d7b46acf2ed2e9589 (patch) | |
tree | cbf336d45547edd85959d6694096c20e348e657b /test/cpp/end2end/async_end2end_test.cc | |
parent | df62b97299fa95f40052faff285f147cb2f0ce05 (diff) | |
parent | f9263bcfcd21efce71e90a81be96e58dd03686fc (diff) |
Merge github.com:grpc/grpc into lb_shutdown
Diffstat (limited to 'test/cpp/end2end/async_end2end_test.cc')
-rw-r--r-- | test/cpp/end2end/async_end2end_test.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/cpp/end2end/async_end2end_test.cc b/test/cpp/end2end/async_end2end_test.cc index 74290c36d2..364aa417cd 100644 --- a/test/cpp/end2end/async_end2end_test.cc +++ b/test/cpp/end2end/async_end2end_test.cc @@ -179,6 +179,17 @@ class AsyncEnd2endTest : public ::testing::TestWithParam<bool> { void SetUp() GRPC_OVERRIDE { int port = grpc_pick_unused_port_or_die(); server_address_ << "localhost:" << port; + + // It is currently unsupported to mix sync and async services + // in the same server, so first test that (for coverage) + ServerBuilder build_bad; + build_bad.AddListeningPort(server_address_.str(), + grpc::InsecureServerCredentials()); + build_bad.RegisterAsyncService(&service_); + grpc::cpp::test::util::TestService::Service sync_service; + build_bad.RegisterService(&sync_service); + GPR_ASSERT(build_bad.BuildAndStart() == nullptr); + // Setup server ServerBuilder builder; builder.AddListeningPort(server_address_.str(), |