diff options
author | Sree Kuchibhotla <sreek@google.com> | 2017-02-27 11:25:28 -0800 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2017-03-02 13:03:30 -0800 |
commit | 321881d07f7806601bbf6d7929f4e4e58bc1e913 (patch) | |
tree | 0ca35b2f1f787af538c5c3ac88b8f1a2a7a00ebb /test/core/end2end/tests/cancel_before_invoke.c | |
parent | 7a4e5b427ccfdef78a170c9e9ba7f04e1f59b0fe (diff) |
Change Core to use the new completion_queue_create API
Diffstat (limited to 'test/core/end2end/tests/cancel_before_invoke.c')
-rw-r--r-- | test/core/end2end/tests/cancel_before_invoke.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/core/end2end/tests/cancel_before_invoke.c b/test/core/end2end/tests/cancel_before_invoke.c index 586aa7ead3..e96ee5a0e1 100644 --- a/test/core/end2end/tests/cancel_before_invoke.c +++ b/test/core/end2end/tests/cancel_before_invoke.c @@ -72,9 +72,10 @@ 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->cq, tag(1000)); - GPR_ASSERT(grpc_completion_queue_pluck( - f->cq, tag(1000), grpc_timeout_seconds_to_deadline(5), NULL) + 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_destroy(f->server); f->server = NULL; @@ -93,6 +94,7 @@ static void end_test(grpc_end2end_test_fixture *f) { grpc_completion_queue_shutdown(f->cq); drain_cq(f->cq); grpc_completion_queue_destroy(f->cq); + grpc_completion_queue_destroy(f->shutdown_cq); } /* Cancel before invoke */ |