Skip to content

Commit

Permalink
Merge pull request grpc#11545 from y-zeng/max_message_length
Browse files Browse the repository at this point in the history
Fix max_message_length
  • Loading branch information
y-zeng authored Jun 20, 2017
2 parents 045f934 + 2768866 commit cf8c67c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/core/end2end/tests/max_message_length.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cf8c67c

Please sign in to comment.