aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/end2end
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2015-12-09 10:24:47 -0800
committerGravatar vjpai <vpai@google.com>2015-12-09 10:24:47 -0800
commitba2b8ed55394042d47409a35c61cddecf7b29b8a (patch)
tree4d34fffc8f26b59cbbdbda2da2bb12f4b912c9ff /test/cpp/end2end
parenteec13dc4de1023ed4cf3046f074ed2ed40d865a4 (diff)
Add a case to cover multiple adds of generic service
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r--test/cpp/end2end/generic_end2end_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cpp/end2end/generic_end2end_test.cc b/test/cpp/end2end/generic_end2end_test.cc
index 082119d6d5..6ecf7eb2fe 100644
--- a/test/cpp/end2end/generic_end2end_test.cc
+++ b/test/cpp/end2end/generic_end2end_test.cc
@@ -102,6 +102,10 @@ class GenericEnd2endTest : public ::testing::Test {
builder.AddListeningPort(server_address_.str(),
InsecureServerCredentials());
builder.RegisterAsyncGenericService(&generic_service_);
+ // Include a second call to RegisterAsyncGenericService to make sure that
+ // we get an error in the log, since it is not allowed to have 2 async
+ // generic services
+ builder.RegisterAsyncGenericService(&generic_service_);
srv_cq_ = builder.AddCompletionQueue();
server_ = builder.BuildAndStart();
}