diff options
author | ctiller <ctiller@google.com> | 2014-12-15 15:14:12 -0800 |
---|---|---|
committer | Nicolas Noble <nnoble@google.com> | 2014-12-16 16:57:49 -0800 |
commit | 2845cade4cfb481bc93e9f97430cb6982ec30c21 (patch) | |
tree | 836d20fb4dfd0bd681bf9e571141996d3ba8f809 /test/core/end2end/tests/ping_pong_streaming.c | |
parent | c6d61c4dd6deb80477cb5977b79b00614b20b409 (diff) |
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 <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82180546
Diffstat (limited to 'test/core/end2end/tests/ping_pong_streaming.c')
-rw-r--r-- | test/core/end2end/tests/ping_pong_streaming.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |