aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/tests/InteropTestsRemote.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <muxi@users.noreply.github.com>2017-03-13 17:33:36 -0700
committerGravatar GitHub <noreply@github.com>2017-03-13 17:33:36 -0700
commit9f74e838e2cfdba10176e9fda3baa3dfe45a5ac0 (patch)
treeaa274b5bea37a7368f80c97333ad069648b57726 /src/objective-c/tests/InteropTestsRemote.m
parent7e151845ab580a7fd5fb72922d3381034045d7b4 (diff)
parent37bbbd770f3131cf5edbc1201d343320440897af (diff)
Merge branch 'master' into packet-coalescing-objc
Diffstat (limited to 'src/objective-c/tests/InteropTestsRemote.m')
-rw-r--r--src/objective-c/tests/InteropTestsRemote.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/objective-c/tests/InteropTestsRemote.m b/src/objective-c/tests/InteropTestsRemote.m
index ad7efebc81..ff1193302b 100644
--- a/src/objective-c/tests/InteropTestsRemote.m
+++ b/src/objective-c/tests/InteropTestsRemote.m
@@ -38,6 +38,10 @@
static NSString * const kRemoteSSLHost = @"grpc-test.sandbox.googleapis.com";
+// The Protocol Buffers encoding overhead of remote interop server. Acquired
+// by experiment. Adjust this when server's proto file changes.
+static int32_t kRemoteInteropServerOverhead = 12;
+
/** Tests in InteropTests.m, sending the RPCs to a remote SSL server. */
@interface InteropTestsRemote : InteropTests
@end
@@ -49,7 +53,7 @@ static NSString * const kRemoteSSLHost = @"grpc-test.sandbox.googleapis.com";
}
- (int32_t)encodingOverhead {
- return 12; // bytes
+ return kRemoteInteropServerOverhead; // bytes
}
@end