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
c37a8a56
Commit
c37a8a56
authored
8 years ago
by
Sree Kuchibhotla
Browse files
Options
Downloads
Patches
Plain Diff
Fix test
parent
d39f40da
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/grpc++/server_builder.h
+1
-1
1 addition, 1 deletion
include/grpc++/server_builder.h
test/cpp/end2end/end2end_test.cc
+7
-8
7 additions, 8 deletions
test/cpp/end2end/end2end_test.cc
with
8 additions
and
9 deletions
include/grpc++/server_builder.h
+
1
−
1
View file @
c37a8a56
...
...
@@ -183,7 +183,7 @@ class ServerBuilder {
:
num_cqs
(
GPR_MAX
(
gpr_cpu_num_cores
(),
4
)),
min_pollers
(
1
),
max_pollers
(
INT_MAX
),
cq_timeout_msec
(
100
)
{}
cq_timeout_msec
(
100
0
)
{}
// Number of server completion queues to create to listen to incoming RPCs.
int
num_cqs
;
...
...
This diff is collapsed.
Click to expand it.
test/cpp/end2end/end2end_test.cc
+
7
−
8
View file @
c37a8a56
...
...
@@ -226,11 +226,6 @@ class End2endTest : public ::testing::TestWithParam<TestScenario> {
kMaxMessageSize_
(
8192
),
special_service_
(
"special"
)
{
GetParam
().
Log
();
sync_server_settings_
.
max_pollers
=
INT_MAX
;
sync_server_settings_
.
min_pollers
=
1
;
sync_server_settings_
.
cq_timeout_msec
=
10
;
sync_server_settings_
.
num_cqs
=
4
;
}
void
TearDown
()
GRPC_OVERRIDE
{
...
...
@@ -256,7 +251,9 @@ class End2endTest : public ::testing::TestWithParam<TestScenario> {
kMaxMessageSize_
);
// For testing max message size.
builder
.
RegisterService
(
&
dup_pkg_service_
);
builder
.
SetSyncServerSettings
(
sync_server_settings_
);
builder
.
SetSyncServerOption
(
ServerBuilder
::
SyncServerOption
::
NUM_CQS
,
4
);
builder
.
SetSyncServerOption
(
ServerBuilder
::
SyncServerOption
::
CQ_TIMEOUT_MSEC
,
10
);
server_
=
builder
.
BuildAndStart
();
is_server_started_
=
true
;
...
...
@@ -287,7 +284,10 @@ class End2endTest : public ::testing::TestWithParam<TestScenario> {
ServerBuilder
builder
;
builder
.
AddListeningPort
(
proxyaddr
.
str
(),
InsecureServerCredentials
());
builder
.
RegisterService
(
proxy_service_
.
get
());
builder
.
SetSyncServerSettings
(
sync_server_settings_
);
builder
.
SetSyncServerOption
(
ServerBuilder
::
SyncServerOption
::
NUM_CQS
,
4
);
builder
.
SetSyncServerOption
(
ServerBuilder
::
SyncServerOption
::
CQ_TIMEOUT_MSEC
,
10
);
proxy_server_
=
builder
.
BuildAndStart
();
...
...
@@ -309,7 +309,6 @@ class End2endTest : public ::testing::TestWithParam<TestScenario> {
TestServiceImpl
special_service_
;
TestServiceImplDupPkg
dup_pkg_service_
;
grpc
::
string
user_agent_prefix_
;
ServerBuilder
::
SyncServerSettings
sync_server_settings_
;
};
static
void
SendRpc
(
grpc
::
testing
::
EchoTestService
::
Stub
*
stub
,
int
num_rpcs
,
...
...
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