diff options
author | David Garcia Quintas <dgq@google.com> | 2016-06-21 17:13:28 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-06-21 17:13:28 -0700 |
commit | 446f70e3843d9cdf40b6cf80d74bcd153032c2cf (patch) | |
tree | 8d770cf3efdcdc53e8a7c6d1cb2cd45149d89e68 /test/cpp/interop | |
parent | ff32a8648270ccf9fce9d8950eee06e917177715 (diff) |
fixed faulty server streaming c++ test case
Diffstat (limited to 'test/cpp/interop')
-rw-r--r-- | test/cpp/interop/interop_server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/interop/interop_server.cc b/test/cpp/interop/interop_server.cc index 199fef5455..ebef0002a3 100644 --- a/test/cpp/interop/interop_server.cc +++ b/test/cpp/interop/interop_server.cc @@ -194,8 +194,6 @@ class TestServiceImpl : public TestService::Service { ServerContext* context, const StreamingOutputCallRequest* request, ServerWriter<StreamingOutputCallResponse>* writer) { StreamingOutputCallResponse response; - // Compress by default. Disabled on a per-message basis. - context->set_compression_level(GRPC_COMPRESS_LEVEL_HIGH); bool write_success = true; for (int i = 0; write_success && i < request->response_parameters_size(); i++) { @@ -206,6 +204,8 @@ class TestServiceImpl : public TestService::Service { } WriteOptions wopts; if (request->response_parameters(i).has_compressed()) { + // Compress by default. Disabled on a per-message basis. + context->set_compression_level(GRPC_COMPRESS_LEVEL_HIGH); const bool compression_requested = request->response_parameters(i).compressed().value(); gpr_log(GPR_DEBUG, "Request for compression (%s) present for %s", |