diff options
author | Craig Tiller <ctiller@google.com> | 2015-05-27 13:00:38 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-05-27 13:00:38 -0700 |
commit | e511fdbd51765b42068bea669dddd2ef85e75838 (patch) | |
tree | 81956739800ac5ac9c4670c330dc87e200e1f76a /test | |
parent | d0e741cf0faabb83f14ad38a6d0c3bf37b21a931 (diff) |
Make test shutdown server
Diffstat (limited to 'test')
-rw-r--r-- | test/core/bad_client/bad_client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/core/bad_client/bad_client.c b/test/core/bad_client/bad_client.c index c3725b5909..76fd6c8e01 100644 --- a/test/core/bad_client/bad_client.c +++ b/test/core/bad_client/bad_client.c @@ -129,6 +129,10 @@ void grpc_run_bad_client_test(const char *name, const char *client_payload, /* Shutdown */ grpc_endpoint_destroy(sfd.client); + grpc_server_shutdown_and_notify(a.server, a.cq, NULL); + GPR_ASSERT(grpc_completion_queue_pluck(a.cq, NULL, + GRPC_TIMEOUT_SECONDS_TO_DEADLINE(1)) + .type == GRPC_OP_COMPLETE); grpc_server_destroy(a.server); grpc_completion_queue_destroy(a.cq); |