diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-17 09:02:40 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-17 09:02:40 -0700 |
commit | 919442611013a516298885912624d8603fabb85a (patch) | |
tree | 035606b74e44bba3009d43d205362a0086bcda86 /test/core/end2end/tests | |
parent | d5229da0193d5f03e57fd6d287bab9637c54752c (diff) |
Migrate new test to new api
Diffstat (limited to 'test/core/end2end/tests')
-rw-r--r-- | test/core/end2end/tests/request_with_flags.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/end2end/tests/request_with_flags.c b/test/core/end2end/tests/request_with_flags.c index f9d6081577..5ad475544c 100644 --- a/test/core/end2end/tests/request_with_flags.c +++ b/test/core/end2end/tests/request_with_flags.c @@ -75,7 +75,8 @@ static void drain_cq(grpc_completion_queue *cq) { static void shutdown_server(grpc_end2end_test_fixture *f) { if (!f->server) return; - grpc_server_shutdown(f->server); + grpc_server_shutdown_and_notify(f->server, f->server_cq, tag(1000)); + GPR_ASSERT(grpc_completion_queue_pluck(f->server_cq, tag(1000), GRPC_TIMEOUT_SECONDS_TO_DEADLINE(5)).type == GRPC_OP_COMPLETE); grpc_server_destroy(f->server); f->server = NULL; } |