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
ec0743e6
Commit
ec0743e6
authored
8 years ago
by
Jorge Canizales
Browse files
Options
Downloads
Patches
Plain Diff
Leave improving the error message as a TODO
parent
6af4addd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/objective-c/tests/InteropTests.m
+6
-1
6 additions, 1 deletion
src/objective-c/tests/InteropTests.m
with
6 additions
and
1 deletion
src/objective-c/tests/InteropTests.m
+
6
−
1
View file @
ec0743e6
...
@@ -171,7 +171,12 @@
...
@@ -171,7 +171,12 @@
request
.
responseSize
=
kPayloadSize
;
request
.
responseSize
=
kPayloadSize
;
[
_service
unaryCallWithRequest
:
request
handler
:
^
(
RMTSimpleResponse
*
response
,
NSError
*
error
)
{
[
_service
unaryCallWithRequest
:
request
handler
:
^
(
RMTSimpleResponse
*
response
,
NSError
*
error
)
{
XCTAssertEqualObjects
(
error
.
localizedDescription
,
@"Max message size exceeded"
);
// TODO: Improve
// TODO(jcanizales): Catch the error and rethrow it with an actionable message:
// - Use +[GRPCCall setResponseSizeLimit:forHost:] to set a higher limit.
// - If you're developing the server, consider using response streaming, or let clients filter
// responses by setting a google.protobuf.FieldMask in the request:
// https://github.com/google/protobuf/blob/master/src/google/protobuf/field_mask.proto
XCTAssertEqualObjects
(
error
.
localizedDescription
,
@"Max message size exceeded"
);
[
expectation
fulfill
];
[
expectation
fulfill
];
}];
}];
...
...
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