aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/tests/cancel_before_invoke.c
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2016-09-19 16:48:36 -0700
committerGravatar Muxi Yan <mxyan@google.com>2016-09-20 10:16:55 -0700
commit6d686451627122eeb5a07da2ede2cebc1c289acd (patch)
tree81ab20d2e2ac76832c3c74befbfdae3a83b0ae29 /test/core/end2end/tests/cancel_before_invoke.c
parenta6a6fa4f12c5634d87d8b4e64fa50c3618586a7c (diff)
Update unit tests and fixtures with AUTHORITY_HEADER support option
Diffstat (limited to 'test/core/end2end/tests/cancel_before_invoke.c')
-rw-r--r--test/core/end2end/tests/cancel_before_invoke.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/core/end2end/tests/cancel_before_invoke.c b/test/core/end2end/tests/cancel_before_invoke.c
index c57091476e..b446264f9d 100644
--- a/test/core/end2end/tests/cancel_before_invoke.c
+++ b/test/core/end2end/tests/cancel_before_invoke.c
@@ -43,6 +43,8 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
+static char *authority;
+
static void *tag(intptr_t t) { return (void *)t; }
static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config,
@@ -119,7 +121,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", "foo.test.google.fr", deadline, NULL);
+ "/foo", authority, deadline, NULL);
GPR_ASSERT(c);
GPR_ASSERT(GRPC_CALL_OK == grpc_call_cancel(c, NULL));
@@ -189,6 +191,7 @@ static void test_cancel_before_invoke(grpc_end2end_test_config config,
void cancel_before_invoke(grpc_end2end_test_config config) {
size_t i;
+ authority = validate_host_override_string("foo.test.google.fr", config);
for (i = 1; i <= 6; i++) {
test_cancel_before_invoke(config, i);
}