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
78e0864d
Commit
78e0864d
authored
8 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Expand allowable resource quota failures: unavailable seems sane
parent
e7c31edb
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/core/end2end/tests/resource_quota_server.c
+6
-2
6 additions, 2 deletions
test/core/end2end/tests/resource_quota_server.c
with
6 additions
and
2 deletions
test/core/end2end/tests/resource_quota_server.c
+
6
−
2
View file @
78e0864d
...
...
@@ -169,6 +169,7 @@ void resource_quota_server(grpc_end2end_test_config config) {
int
cancelled_calls_on_client
=
0
;
int
cancelled_calls_on_server
=
0
;
int
deadline_exceeded
=
0
;
int
unavailable
=
0
;
grpc_byte_buffer
*
request_payload
=
grpc_raw_byte_buffer_create
(
&
request_payload_slice
,
1
);
...
...
@@ -260,6 +261,9 @@ void resource_quota_server(grpc_end2end_test_config config) {
case
GRPC_STATUS_DEADLINE_EXCEEDED
:
deadline_exceeded
++
;
break
;
case
GRPC_STATUS_UNAVAILABLE
:
unavailable
++
;
break
;
case
GRPC_STATUS_OK
:
break
;
default:
...
...
@@ -358,9 +362,9 @@ void resource_quota_server(grpc_end2end_test_config config) {
gpr_log
(
GPR_INFO
,
"Done. %d total calls: %d cancelled at server, %d cancelled at "
"client, %d timed out."
,
"client, %d timed out
, %d unavailable
."
,
NUM_CALLS
,
cancelled_calls_on_server
,
cancelled_calls_on_client
,
deadline_exceeded
);
deadline_exceeded
,
unavailable
);
grpc_byte_buffer_destroy
(
request_payload
);
grpc_slice_unref
(
request_payload_slice
);
...
...
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