diff options
author | 2016-10-30 23:39:41 -0700 | |
---|---|---|
committer | 2016-10-30 23:42:38 -0700 | |
commit | ea3b568b8fef498f6aeec4349702c588afe709da (patch) | |
tree | aee9b1cbc221d55dd609bb6f7022d28cb787905a /test/core/end2end/tests/simple_metadata.c | |
parent | 56456c38e070aa07bbef7748b46cacfae5d3c671 (diff) |
Put validation of host name in a function
Diffstat (limited to 'test/core/end2end/tests/simple_metadata.c')
-rw-r--r-- | test/core/end2end/tests/simple_metadata.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/core/end2end/tests/simple_metadata.c b/test/core/end2end/tests/simple_metadata.c index c8370b4b15..d618221362 100644 --- a/test/core/end2end/tests/simple_metadata.c +++ b/test/core/end2end/tests/simple_metadata.c @@ -232,9 +232,7 @@ static void test_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")); - 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")); GPR_ASSERT(byte_buffer_eq_string(response_payload_recv, "hello you")); |