diff options
author | Craig Tiller <ctiller@google.com> | 2016-04-04 13:42:04 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-04-04 13:42:04 -0700 |
commit | c48ca71614f04a6e2b19fc1c100ace8bfcfc45a8 (patch) | |
tree | 3d6356158d38b8898545676e83772e7c9ec19bc5 /test/core/end2end | |
parent | 4a9a2b96342d8b9e23110bb8ecd58aaebeada13b (diff) |
Add a test demonstrating forced closure of a stream, and make it work
Diffstat (limited to 'test/core/end2end')
-rw-r--r-- | test/core/end2end/tests/filter_causes_close.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/core/end2end/tests/filter_causes_close.c b/test/core/end2end/tests/filter_causes_close.c index c6fb766f82..d4a9f6fac4 100644 --- a/test/core/end2end/tests/filter_causes_close.c +++ b/test/core/end2end/tests/filter_causes_close.c @@ -110,7 +110,6 @@ static void test_request(grpc_end2end_test_config config) { grpc_byte_buffer *request_payload = grpc_raw_byte_buffer_create(&request_payload_slice, 1); gpr_timespec deadline = five_seconds_time(); - grpc_metadata meta; grpc_end2end_test_fixture f = begin_test(config, "filter_causes_close", NULL, NULL); cq_verifier *cqv = cq_verifier_create(f.cq); @@ -177,8 +176,6 @@ static void test_request(grpc_end2end_test_config config) { GPR_ASSERT(status == GRPC_STATUS_PERMISSION_DENIED); GPR_ASSERT(0 == strcmp(details, "Random failure that's not preventable.")); - GPR_ASSERT(byte_buffer_eq_string(request_payload_recv, "hello world")); - GPR_ASSERT(contains_metadata(&request_metadata_recv, "key", meta.value)); gpr_free(details); grpc_metadata_array_destroy(&initial_metadata_recv); @@ -187,15 +184,12 @@ static void test_request(grpc_end2end_test_config config) { grpc_call_details_destroy(&call_details); grpc_call_destroy(c); - grpc_call_destroy(s); cq_verifier_destroy(cqv); grpc_byte_buffer_destroy(request_payload); grpc_byte_buffer_destroy(request_payload_recv); - gpr_free((char *)meta.value); - end_test(&f); config.tear_down_data(&f); } |