aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-05-08 16:46:50 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-05-08 16:46:50 -0700
commitdd67dbadeebea97b69ecf8674911ccd32a720e84 (patch)
tree9af6714025a37ccf2b0516f0257e2b61ed628dfb /test
parentf00454a646252b3b7027ed1a2dd814405537520f (diff)
Fix test
Diffstat (limited to 'test')
-rw-r--r--test/core/end2end/tests/request_response_with_trailing_metadata_and_payload.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/core/end2end/tests/request_response_with_trailing_metadata_and_payload.c b/test/core/end2end/tests/request_response_with_trailing_metadata_and_payload.c
index 060076e2db..4c908dfd10 100644
--- a/test/core/end2end/tests/request_response_with_trailing_metadata_and_payload.c
+++ b/test/core/end2end/tests/request_response_with_trailing_metadata_and_payload.c
@@ -67,14 +67,10 @@ static gpr_timespec n_seconds_time(int n) {
static gpr_timespec five_seconds_time(void) { return n_seconds_time(5); }
static void drain_cq(grpc_completion_queue *cq) {
- grpc_event *ev;
- grpc_completion_type type;
+ grpc_event ev;
do {
ev = grpc_completion_queue_next(cq, five_seconds_time());
- GPR_ASSERT(ev);
- type = ev->type;
- grpc_event_finish(ev);
- } while (type != GRPC_QUEUE_SHUTDOWN);
+ } while (ev.type != GRPC_QUEUE_SHUTDOWN);
}
static void shutdown_server(grpc_end2end_test_fixture *f) {