diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2017-03-16 18:15:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 18:15:23 -0700 |
commit | e7aef6c4e484414f555f4a833a7c804229d5e4b7 (patch) | |
tree | 5dbfc6133d6a3bbf97f37f4f3b628dae3f09cab6 /src/objective-c/tests/InteropTestsLocalSSL.m | |
parent | 765574891735b12369427bdb85edbbad035ba9aa (diff) | |
parent | 10112e50defa8b4ea10a153fd206ae8a1f1665a6 (diff) |
Merge pull request #10183 from muxi/backport-10042
Backport 10042: Use the right encoding overhead number in remote interop test with Cronet
Diffstat (limited to 'src/objective-c/tests/InteropTestsLocalSSL.m')
-rw-r--r-- | src/objective-c/tests/InteropTestsLocalSSL.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/objective-c/tests/InteropTestsLocalSSL.m b/src/objective-c/tests/InteropTestsLocalSSL.m index 1479c5896c..934d500abc 100644 --- a/src/objective-c/tests/InteropTestsLocalSSL.m +++ b/src/objective-c/tests/InteropTestsLocalSSL.m @@ -37,6 +37,10 @@ static NSString * const kLocalSSLHost = @"localhost:5051"; +// The Protocol Buffers encoding overhead of local interop server. Acquired +// by experiment. Adjust this when server's proto file changes. +static int32_t kLocalInteropServerOverhead = 10; + /** Tests in InteropTests.m, sending the RPCs to a local SSL server. */ @interface InteropTestsLocalSSL : InteropTests @end @@ -48,7 +52,7 @@ static NSString * const kLocalSSLHost = @"localhost:5051"; } - (int32_t)encodingOverhead { - return 10; // bytes + return kLocalInteropServerOverhead; // bytes } - (void)setUp { |