diff options
author | 2016-10-30 23:11:11 -0700 | |
---|---|---|
committer | 2016-10-30 23:42:38 -0700 | |
commit | 56456c38e070aa07bbef7748b46cacfae5d3c671 (patch) | |
tree | aa8c03f1249b5ca2a87b49cbb9ea1f8581be48ba /test/core/end2end/tests/cancel_before_invoke.c | |
parent | df1da9ffc0be338742481b4e1a5e2a20c04e3d99 (diff) |
Use get_host_override_string function inline
Diffstat (limited to 'test/core/end2end/tests/cancel_before_invoke.c')
-rw-r--r-- | test/core/end2end/tests/cancel_before_invoke.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/core/end2end/tests/cancel_before_invoke.c b/test/core/end2end/tests/cancel_before_invoke.c index e97ddd63ca..7e1d4ca1fb 100644 --- a/test/core/end2end/tests/cancel_before_invoke.c +++ b/test/core/end2end/tests/cancel_before_invoke.c @@ -43,8 +43,6 @@ #include <grpc/support/useful.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, @@ -121,7 +119,7 @@ static void test_cancel_before_invoke(grpc_end2end_test_config config, grpc_raw_byte_buffer_create(&request_payload_slice, 1); 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); GPR_ASSERT(GRPC_CALL_OK == grpc_call_cancel(c, NULL)); @@ -191,7 +189,6 @@ static void test_cancel_before_invoke(grpc_end2end_test_config config, void cancel_before_invoke(grpc_end2end_test_config config) { size_t i; - authority = get_host_override_string("foo.test.google.fr", config); for (i = 1; i <= 6; i++) { test_cancel_before_invoke(config, i); } |