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/handshake | |
parent | 7a4e5b427ccfdef78a170c9e9ba7f04e1f59b0fe (diff) |
Change Core to use the new completion_queue_create API
Diffstat (limited to 'test/core/handshake')
-rw-r--r-- | test/core/handshake/client_ssl.c | 4 | ||||
-rw-r--r-- | test/core/handshake/server_ssl.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/core/handshake/client_ssl.c b/test/core/handshake/client_ssl.c index 5cfe60de4b..72e8ffe02a 100644 --- a/test/core/handshake/client_ssl.c +++ b/test/core/handshake/client_ssl.c @@ -289,7 +289,9 @@ static bool client_ssl_test(char *server_alpn_preferred) { // completed and we know that the client's ALPN list satisfied the server. int retries = 10; grpc_connectivity_state state = GRPC_CHANNEL_IDLE; - grpc_completion_queue *cq = grpc_completion_queue_create(NULL); + grpc_completion_queue *cq = + grpc_completion_queue_create(GRPC_CQ_NEXT, DEFAULT_POLLING, NULL); + while (state != GRPC_CHANNEL_READY && retries-- > 0) { grpc_channel_watch_connectivity_state( channel, state, grpc_timeout_seconds_to_deadline(3), cq, NULL); diff --git a/test/core/handshake/server_ssl.c b/test/core/handshake/server_ssl.c index 0bd5a03cff..f61ad786bc 100644 --- a/test/core/handshake/server_ssl.c +++ b/test/core/handshake/server_ssl.c @@ -104,7 +104,8 @@ static void server_thread(void *arg) { GPR_ASSERT(grpc_server_add_secure_http2_port(server, addr, ssl_creds)); free(addr); - grpc_completion_queue *cq = grpc_completion_queue_create(NULL); + grpc_completion_queue *cq = + grpc_completion_queue_create(GRPC_CQ_NEXT, DEFAULT_POLLING, NULL); grpc_server_register_completion_queue(server, cq, NULL); grpc_server_start(server); |