diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2017-01-20 13:39:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-20 13:39:08 -0800 |
commit | 28ec869b5a2567cd30a6e3bcc0efbee0ab0ae7f5 (patch) | |
tree | be591d8c9033c3c4aa064b458acc8e7fe62d7598 /test/core/end2end/no_server_test.c | |
parent | bd827887ffbb57a95990130f585913b13f44a5b7 (diff) | |
parent | 2b5cf1ff2681bb94fa1e3651f8ccfc14bdfa71b2 (diff) |
Merge pull request #8842 from ctiller/metadata_filter
Metadata handling rewrite
Diffstat (limited to 'test/core/end2end/no_server_test.c')
-rw-r--r-- | test/core/end2end/no_server_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/core/end2end/no_server_test.c b/test/core/end2end/no_server_test.c index 03ff70a188..5c0f7a0f48 100644 --- a/test/core/end2end/no_server_test.c +++ b/test/core/end2end/no_server_test.c @@ -52,8 +52,7 @@ int main(int argc, char **argv) { grpc_op *op; grpc_metadata_array trailing_metadata_recv; grpc_status_code status; - char *details = NULL; - size_t details_capacity = 0; + grpc_slice details; grpc_test_init(argc, argv); grpc_init(); @@ -65,8 +64,10 @@ int main(int argc, char **argv) { /* create a call, channel to a non existant server */ chan = grpc_insecure_channel_create("nonexistant:54321", NULL, NULL); + grpc_slice host = grpc_slice_from_static_string("nonexistant"); call = grpc_channel_create_call(chan, NULL, GRPC_PROPAGATE_DEFAULTS, cq, - "/Foo", "nonexistant", deadline, NULL); + grpc_slice_from_static_string("/Foo"), &host, + deadline, NULL); memset(ops, 0, sizeof(ops)); op = ops; @@ -79,7 +80,6 @@ int main(int argc, char **argv) { op->data.recv_status_on_client.trailing_metadata = &trailing_metadata_recv; op->data.recv_status_on_client.status = &status; op->data.recv_status_on_client.status_details = &details; - op->data.recv_status_on_client.status_details_capacity = &details_capacity; op->flags = 0; op->reserved = NULL; op++; @@ -101,7 +101,7 @@ int main(int argc, char **argv) { grpc_channel_destroy(chan); cq_verifier_destroy(cqv); - gpr_free(details); + grpc_slice_unref(details); grpc_metadata_array_destroy(&trailing_metadata_recv); grpc_shutdown(); |