aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/tests/streaming_error_response.c
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2016-10-30 23:11:11 -0700
committerGravatar Muxi Yan <mxyan@google.com>2016-10-30 23:42:38 -0700
commit56456c38e070aa07bbef7748b46cacfae5d3c671 (patch)
treeaa8c03f1249b5ca2a87b49cbb9ea1f8581be48ba /test/core/end2end/tests/streaming_error_response.c
parentdf1da9ffc0be338742481b4e1a5e2a20c04e3d99 (diff)
Use get_host_override_string function inline
Diffstat (limited to 'test/core/end2end/tests/streaming_error_response.c')
-rw-r--r--test/core/end2end/tests/streaming_error_response.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/core/end2end/tests/streaming_error_response.c b/test/core/end2end/tests/streaming_error_response.c
index 2eaa4a4d1b..b6167aa135 100644
--- a/test/core/end2end/tests/streaming_error_response.c
+++ b/test/core/end2end/tests/streaming_error_response.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,
@@ -128,7 +126,7 @@ static void test(grpc_end2end_test_config config, bool request_status_early) {
int was_cancelled = 2;
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);
@@ -273,7 +271,6 @@ static void test(grpc_end2end_test_config config, bool request_status_early) {
}
void streaming_error_response(grpc_end2end_test_config config) {
- authority = get_host_override_string("foo.test.google.fr", config);
test(config, false);
test(config, true);
}