diff options
author | Sree Kuchibhotla <sreecha@users.noreply.github.com> | 2017-04-14 07:59:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-14 07:59:18 -0700 |
commit | b81fb794a397b053df0d4bed7b1525a0ff51535f (patch) | |
tree | 45a4df4c665d7de3e04363af5ec6176427abc8f8 /test/core/end2end/tests/trailing_metadata.c | |
parent | 90bb7bddd138bac7126b01bfcb31fa9beff7d2fb (diff) | |
parent | 0e5fa9ebcd69746c2f27339a7cc13c3da2cde012 (diff) |
Merge pull request #9972 from sreecha/cq_create_api_changes
Completion Queue creation API changes (C-Core and C++ only)
Diffstat (limited to 'test/core/end2end/tests/trailing_metadata.c')
-rw-r--r-- | test/core/end2end/tests/trailing_metadata.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/core/end2end/tests/trailing_metadata.c b/test/core/end2end/tests/trailing_metadata.c index 3cbffdfe75..78046261c3 100644 --- a/test/core/end2end/tests/trailing_metadata.c +++ b/test/core/end2end/tests/trailing_metadata.c @@ -74,9 +74,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; @@ -95,6 +96,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); } /* Request/response with metadata and payload.*/ |