diff options
author | Muxi Yan <mxyan@google.com> | 2016-10-30 23:39:41 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2016-10-30 23:42:38 -0700 |
commit | ea3b568b8fef498f6aeec4349702c588afe709da (patch) | |
tree | aee9b1cbc221d55dd609bb6f7022d28cb787905a /test/core/end2end/tests/request_with_payload.c | |
parent | 56456c38e070aa07bbef7748b46cacfae5d3c671 (diff) |
Put validation of host name in a function
Diffstat (limited to 'test/core/end2end/tests/request_with_payload.c')
-rw-r--r-- | test/core/end2end/tests/request_with_payload.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/core/end2end/tests/request_with_payload.c b/test/core/end2end/tests/request_with_payload.c index 5755d20fe5..0c18256549 100644 --- a/test/core/end2end/tests/request_with_payload.c +++ b/test/core/end2end/tests/request_with_payload.c @@ -208,9 +208,7 @@ static void test_invoke_request_with_payload(grpc_end2end_test_config config) { GPR_ASSERT(status == GRPC_STATUS_OK); GPR_ASSERT(0 == strcmp(details, "xyz")); GPR_ASSERT(0 == strcmp(call_details.method, "/foo")); - if (authority) { - GPR_ASSERT(0 == strcmp(call_details.host, authority)); - } + validate_host_override_string("foo.test.google.fr:1234", call_details.host, config); GPR_ASSERT(was_cancelled == 0); GPR_ASSERT(byte_buffer_eq_string(request_payload_recv, "hello world")); |