aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/tests/shutdown_finishes_calls.c
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-05-06 16:59:03 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-05-09 14:30:41 -0700
commita301eaade83854cf172d39899232835f21e57690 (patch)
tree2915d1d66fd9b594e8a68963586dac8a5970b2d7 /test/core/end2end/tests/shutdown_finishes_calls.c
parentc916c1ce17fe273dff881e1c87e17ad991c2078a (diff)
Allow servers to select compression level via initial MD.
Setting the newly added compression_level field of grpc_op::send_initial_metadata by a server now has the effect of applying that compression level for the subsequent call messages leaving the server. The ultimate meaning of the level depends on the client's supported compression algorithms.
Diffstat (limited to 'test/core/end2end/tests/shutdown_finishes_calls.c')
-rw-r--r--test/core/end2end/tests/shutdown_finishes_calls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/end2end/tests/shutdown_finishes_calls.c b/test/core/end2end/tests/shutdown_finishes_calls.c
index 80287cd507..abb6b26a87 100644
--- a/test/core/end2end/tests/shutdown_finishes_calls.c
+++ b/test/core/end2end/tests/shutdown_finishes_calls.c
@@ -115,6 +115,7 @@ static void test_early_server_shutdown_finishes_inflight_calls(
grpc_metadata_array_init(&request_metadata_recv);
grpc_call_details_init(&call_details);
+ memset(ops, 0, sizeof(ops));
op = ops;
op->op = GRPC_OP_SEND_INITIAL_METADATA;
op->data.send_initial_metadata.count = 0;
@@ -149,6 +150,7 @@ static void test_early_server_shutdown_finishes_inflight_calls(
cq_expect_completion(cqv, tag(101), 1);
cq_verify(cqv);
+ memset(ops, 0, sizeof(ops));
op = ops;
op->op = GRPC_OP_RECV_CLOSE_ON_SERVER;
op->data.recv_close_on_server.cancelled = &was_cancelled;