diff options
author | Muxi Yan <mxyan@google.com> | 2016-10-30 23:11:11 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2016-10-30 23:42:38 -0700 |
commit | 56456c38e070aa07bbef7748b46cacfae5d3c671 (patch) | |
tree | aa8c03f1249b5ca2a87b49cbb9ea1f8581be48ba /test/core/end2end/tests/compressed_payload.c | |
parent | df1da9ffc0be338742481b4e1a5e2a20c04e3d99 (diff) |
Use get_host_override_string function inline
Diffstat (limited to 'test/core/end2end/tests/compressed_payload.c')
-rw-r--r-- | test/core/end2end/tests/compressed_payload.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/core/end2end/tests/compressed_payload.c b/test/core/end2end/tests/compressed_payload.c index 4607940e6c..5925ce7b81 100644 --- a/test/core/end2end/tests/compressed_payload.c +++ b/test/core/end2end/tests/compressed_payload.c @@ -50,8 +50,6 @@ #include "src/core/lib/surface/call_test_only.h" #include "test/core/end2end/cq_verifier.h" -static const char *authority; - static void *tag(intptr_t t) { return (void *)t; } static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, @@ -149,7 +147,7 @@ static void request_for_disabled_algorithm( cqv = cq_verifier_create(f.cq); c = grpc_channel_create_call(f.client, NULL, GRPC_PROPAGATE_DEFAULTS, f.cq, - "/foo", authority, deadline, NULL); + "/foo", get_host_override_string("foo.test.google.fr:1234", config), deadline, NULL); GPR_ASSERT(c); grpc_metadata_array_init(&initial_metadata_recv); @@ -323,7 +321,7 @@ static void request_with_payload_template( cqv = cq_verifier_create(f.cq); c = grpc_channel_create_call(f.client, NULL, GRPC_PROPAGATE_DEFAULTS, f.cq, - "/foo", authority, deadline, NULL); + "/foo", get_host_override_string("foo.test.google.fr:1234", config), deadline, NULL); GPR_ASSERT(c); grpc_metadata_array_init(&initial_metadata_recv); @@ -600,7 +598,6 @@ static void test_invoke_request_with_disabled_algorithm( } void compressed_payload(grpc_end2end_test_config config) { - authority = get_host_override_string("foo.test.google.fr", config); test_invoke_request_with_exceptionally_uncompressed_payload(config); test_invoke_request_with_uncompressed_payload(config); test_invoke_request_with_compressed_payload(config); |