Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
017ed62c
Commit
017ed62c
authored
9 years ago
by
vjpai
Browse files
Options
Downloads
Patches
Plain Diff
Cover an unsupported case of mixing sync and async service in same server
parent
eec13dc4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/cpp/end2end/async_end2end_test.cc
+11
-0
11 additions, 0 deletions
test/cpp/end2end/async_end2end_test.cc
with
11 additions
and
0 deletions
test/cpp/end2end/async_end2end_test.cc
+
11
−
0
View file @
017ed62c
...
@@ -179,6 +179,17 @@ class AsyncEnd2endTest : public ::testing::TestWithParam<bool> {
...
@@ -179,6 +179,17 @@ class AsyncEnd2endTest : public ::testing::TestWithParam<bool> {
void
SetUp
()
GRPC_OVERRIDE
{
void
SetUp
()
GRPC_OVERRIDE
{
int
port
=
grpc_pick_unused_port_or_die
();
int
port
=
grpc_pick_unused_port_or_die
();
server_address_
<<
"localhost:"
<<
port
;
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
// Setup server
ServerBuilder
builder
;
ServerBuilder
builder
;
builder
.
AddListeningPort
(
server_address_
.
str
(),
builder
.
AddListeningPort
(
server_address_
.
str
(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment