From 2845cade4cfb481bc93e9f97430cb6982ec30c21 Mon Sep 17 00:00:00 2001 From: ctiller Date: Mon, 15 Dec 2014 15:14:12 -0800 Subject: Trailing metadata support. Actually exposing it from the C API. Also removing grpc_status, since it's mostly useless. Change on 2014/12/15 by ctiller ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82180546 --- test/core/end2end/tests/ping_pong_streaming.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/core/end2end/tests/ping_pong_streaming.c') diff --git a/test/core/end2end/tests/ping_pong_streaming.c b/test/core/end2end/tests/ping_pong_streaming.c index 84e7bb41b8..02a05e8e0c 100644 --- a/test/core/end2end/tests/ping_pong_streaming.c +++ b/test/core/end2end/tests/ping_pong_streaming.c @@ -108,7 +108,6 @@ static void test_pingpong_streaming(grpc_end2end_test_config config, int i; grpc_call *c; grpc_call *s = NULL; - grpc_status send_status = {GRPC_STATUS_UNIMPLEMENTED, "xyz"}; gpr_slice request_payload_slice = gpr_slice_from_copied_string("hello world"); gpr_slice response_payload_slice = gpr_slice_from_copied_string("hello you"); grpc_byte_buffer *request_payload = NULL; @@ -171,11 +170,12 @@ static void test_pingpong_streaming(grpc_end2end_test_config config, gpr_slice_unref(response_payload_slice); GPR_ASSERT(GRPC_CALL_OK == grpc_call_writes_done(c, tag(6))); - GPR_ASSERT(GRPC_CALL_OK == - grpc_call_start_write_status(s, send_status, tag(7))); + GPR_ASSERT(GRPC_CALL_OK == grpc_call_start_write_status( + s, GRPC_STATUS_UNIMPLEMENTED, "xyz", tag(7))); cq_expect_finish_accepted(v_client, tag(6), GRPC_OP_OK); - cq_expect_finished_with_status(v_client, tag(3), send_status, NULL); + cq_expect_finished_with_status(v_client, tag(3), GRPC_STATUS_UNIMPLEMENTED, + "xyz", NULL); cq_verify(v_client); cq_expect_finish_accepted(v_server, tag(7), GRPC_OP_OK); -- cgit v1.2.3