aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/tests/simple_cacheable_request.c
diff options
context:
space:
mode:
authorGravatar Muxi Yan <muxi@users.noreply.github.com>2016-11-07 21:58:55 -0800
committerGravatar GitHub <noreply@github.com>2016-11-07 21:58:55 -0800
commit150fbe1e5f1b2a88c35b39480770eb1503692bed (patch)
tree08d4195a6822440001a7fd08079924ff208957b5 /test/core/end2end/tests/simple_cacheable_request.c
parent18280299c9bfe2816983a22900e849e5985c640c (diff)
parent4be8afc7edacc5b4501c83997d22432dd1ecbc91 (diff)
Merge pull request #8241 from muxi/core-end2end-tests-cronet-update
Core end2end tests cronet update
Diffstat (limited to 'test/core/end2end/tests/simple_cacheable_request.c')
-rw-r--r--test/core/end2end/tests/simple_cacheable_request.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/core/end2end/tests/simple_cacheable_request.c b/test/core/end2end/tests/simple_cacheable_request.c
index b52eb19315..9f6a6a08a0 100644
--- a/test/core/end2end/tests/simple_cacheable_request.c
+++ b/test/core/end2end/tests/simple_cacheable_request.c
@@ -133,8 +133,10 @@ static void test_cacheable_request_response_with_metadata_and_payload(
size_t details_capacity = 0;
int was_cancelled = 2;
- c = grpc_channel_create_call(f.client, NULL, GRPC_PROPAGATE_DEFAULTS, f.cq,
- "/foo", "foo.test.google.fr", deadline, NULL);
+ c = grpc_channel_create_call(
+ f.client, NULL, GRPC_PROPAGATE_DEFAULTS, f.cq, "/foo",
+ get_host_override_string("foo.test.google.fr:1234", config), deadline,
+ NULL);
GPR_ASSERT(c);
grpc_metadata_array_init(&initial_metadata_recv);
@@ -235,7 +237,8 @@ static void test_cacheable_request_response_with_metadata_and_payload(
GPR_ASSERT(status == GRPC_STATUS_OK);
GPR_ASSERT(0 == strcmp(details, "xyz"));
GPR_ASSERT(0 == strcmp(call_details.method, "/foo"));
- GPR_ASSERT(0 == strcmp(call_details.host, "foo.test.google.fr"));
+ validate_host_override_string("foo.test.google.fr:1234", call_details.host,
+ config);
if (config.feature_mask & FEATURE_MASK_SUPPORTS_REQUEST_PROXYING) {
// Our simple proxy does not support cacheable requests
} else {