aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/surface/invalid_channel_args_test.c
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-09-21 14:10:47 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-09-21 14:10:47 -0700
commit24129f010cb2b9ebccb44b4e0486d89aff7a74ae (patch)
tree6fe3d15f4b12ad79f96fa022aab6adccf0c16fea /test/core/surface/invalid_channel_args_test.c
parent2579bf394175637e44e9696959deac9d3c867c8e (diff)
parentd53957cf4e3924d2abd201fa60ba1e2ae9ba2526 (diff)
Merge remote-tracking branch 'upstream/master' into cli_list
Diffstat (limited to 'test/core/surface/invalid_channel_args_test.c')
-rw-r--r--test/core/surface/invalid_channel_args_test.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/core/surface/invalid_channel_args_test.c b/test/core/surface/invalid_channel_args_test.c
index 1b1b8b8f92..0640879866 100644
--- a/test/core/surface/invalid_channel_args_test.c
+++ b/test/core/surface/invalid_channel_args_test.c
@@ -84,38 +84,6 @@ static void one_test(grpc_channel_args *args, char *expected_error_message) {
static void test_no_error_message(void) { one_test(NULL, NULL); }
-static void test_max_message_length_type(void) {
- grpc_arg client_arg;
- grpc_channel_args client_args;
- char *expected_error_message;
-
- client_arg.type = GRPC_ARG_STRING;
- client_arg.key = GRPC_ARG_MAX_MESSAGE_LENGTH;
- client_arg.value.string = NULL;
-
- client_args.num_args = 1;
- client_args.args = &client_arg;
- expected_error_message = compose_error_string(
- GRPC_ARG_MAX_MESSAGE_LENGTH, " ignored: it must be an integer");
- one_test(&client_args, expected_error_message);
-}
-
-static void test_max_message_length_negative(void) {
- grpc_arg client_arg;
- grpc_channel_args client_args;
- char *expected_error_message;
-
- client_arg.type = GRPC_ARG_INTEGER;
- client_arg.key = GRPC_ARG_MAX_MESSAGE_LENGTH;
- client_arg.value.integer = -1;
-
- client_args.num_args = 1;
- client_args.args = &client_arg;
- expected_error_message = compose_error_string(GRPC_ARG_MAX_MESSAGE_LENGTH,
- " ignored: it must be >= 0");
- one_test(&client_args, expected_error_message);
-}
-
static void test_default_authority_type(void) {
grpc_arg client_arg;
grpc_channel_args client_args;
@@ -174,8 +142,6 @@ int main(int argc, char **argv) {
gpr_set_log_function(log_error_sink);
test_no_error_message();
- test_max_message_length_type();
- test_max_message_length_negative();
test_default_authority_type();
test_ssl_name_override_type();
test_ssl_name_override_failed();