aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2017-06-19 16:53:43 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2017-06-19 16:53:43 -0700
commit276886632001c32ab74a85178f76a50846bf3713 (patch)
treeffd2d23688c0c9c1a87ad8e79af7be6a8f139806 /test/core/end2end
parent6beba3c50e2ac9032da196b9bbf8b2f5484cb924 (diff)
Fix max_message_length
Diffstat (limited to 'test/core/end2end')
-rw-r--r--test/core/end2end/tests/max_message_length.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/core/end2end/tests/max_message_length.c b/test/core/end2end/tests/max_message_length.c
index b85af6685e..01eb8d365e 100644
--- a/test/core/end2end/tests/max_message_length.c
+++ b/test/core/end2end/tests/max_message_length.c
@@ -68,11 +68,11 @@ static void drain_cq(grpc_completion_queue *cq) {
static void shutdown_server(grpc_end2end_test_fixture *f) {
if (!f->server) return;
- grpc_server_shutdown_and_notify(f->server, f->shutdown_cq, tag(1000));
- GPR_ASSERT(grpc_completion_queue_pluck(f->shutdown_cq, tag(1000),
- grpc_timeout_seconds_to_deadline(5),
- NULL)
- .type == GRPC_OP_COMPLETE);
+ grpc_server_shutdown_and_notify(f->server, f->cq, tag(1000));
+ grpc_event ev = grpc_completion_queue_next(
+ f->cq, grpc_timeout_seconds_to_deadline(5), NULL);
+ GPR_ASSERT(ev.type == GRPC_OP_COMPLETE);
+ GPR_ASSERT(ev.tag == tag(1000));
grpc_server_destroy(f->server);
f->server = NULL;
}