diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-05-11 10:38:07 -0700 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-05-11 10:38:07 -0700 |
commit | 65ad0a73cb4c2f144b86eca509ce7b2de576bb71 (patch) | |
tree | e13bdfad467ed9a391725b589fdc4536b50bf11c /test/core/end2end/tests/bad_hostname.c | |
parent | b1fa1d55775a5e617ac5d47039597ac5517ea000 (diff) |
Starting to clean up tests
Diffstat (limited to 'test/core/end2end/tests/bad_hostname.c')
-rw-r--r-- | test/core/end2end/tests/bad_hostname.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/core/end2end/tests/bad_hostname.c b/test/core/end2end/tests/bad_hostname.c index 671f232ee3..7a646a7de7 100644 --- a/test/core/end2end/tests/bad_hostname.c +++ b/test/core/end2end/tests/bad_hostname.c @@ -95,18 +95,15 @@ static void end_test(grpc_end2end_test_fixture *f) { shutdown_server(f); shutdown_client(f); - grpc_completion_queue_shutdown(f->server_cq); - drain_cq(f->server_cq); - grpc_completion_queue_destroy(f->server_cq); - grpc_completion_queue_shutdown(f->client_cq); + grpc_completion_queue_shutdown(f->cq); drain_cq(f->client_cq); - grpc_completion_queue_destroy(f->client_cq); + grpc_completion_queue_destroy(f->cq); } static void simple_request_body(grpc_end2end_test_fixture f) { grpc_call *c; gpr_timespec deadline = five_seconds_time(); - cq_verifier *v_client = cq_verifier_create(f.client_cq); + cq_verifier *cqv = cq_verifier_create(f.cq); grpc_op ops[6]; grpc_op *op; grpc_metadata_array initial_metadata_recv; @@ -143,8 +140,8 @@ static void simple_request_body(grpc_end2end_test_fixture f) { op++; GPR_ASSERT(GRPC_CALL_OK == grpc_call_start_batch(c, ops, op - ops, tag(1))); - cq_expect_completion(v_client, tag(1), GRPC_OP_OK); - cq_verify(v_client); + cq_expect_completion(cqv, tag(1), GRPC_OP_OK); + cq_verify(cqv); GPR_ASSERT(status == GRPC_STATUS_UNAUTHENTICATED); |