aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2016-07-29 01:50:06 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2016-07-29 01:50:06 -0700
commitec0743e6122c605598fd59fe656e00c2a1fcc46a (patch)
treeb5ecc5e83f6976cd90dbd4e4a2e22c2a158466cf /src/objective-c
parent6af4addd55a2a80768c63f0079b4c4ccf855bdda (diff)
Leave improving the error message as a TODO
Diffstat (limited to 'src/objective-c')
-rw-r--r--src/objective-c/tests/InteropTests.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/objective-c/tests/InteropTests.m b/src/objective-c/tests/InteropTests.m
index 33a944196c..67ab43329f 100644
--- a/src/objective-c/tests/InteropTests.m
+++ b/src/objective-c/tests/InteropTests.m
@@ -171,7 +171,12 @@
request.responseSize = kPayloadSize;
[_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];
}];