aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreecha@users.noreply.github.com>2016-02-22 17:45:43 -0800
committerGravatar Sree Kuchibhotla <sreecha@users.noreply.github.com>2016-02-22 17:45:43 -0800
commitacbcdb6d9416ce2985e044338d8887c29aba7e85 (patch)
tree3a68d6313651fa090b35638a679f326334b06dcb /test
parent349bba9179f27a058470de3c2fd2ac6c9ccb80b5 (diff)
parent857c4703ce9791ebc431181afc8a20559a8b67c5 (diff)
Merge pull request #5347 from yang-g/check_error_in_read
Discard the read buffer on stream error
Diffstat (limited to 'test')
-rw-r--r--test/cpp/end2end/async_end2end_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cpp/end2end/async_end2end_test.cc b/test/cpp/end2end/async_end2end_test.cc
index a15cbd7ee2..9ca3bf98f8 100644
--- a/test/cpp/end2end/async_end2end_test.cc
+++ b/test/cpp/end2end/async_end2end_test.cc
@@ -989,6 +989,10 @@ class AsyncEnd2endServerTryCancelTest : public AsyncEnd2endTest {
if (server_try_cancel == CANCEL_AFTER_PROCESSING) {
ServerTryCancel(&srv_ctx);
+
+ // Client reads may fail bacause it is notified that the stream is
+ // cancelled.
+ ignore_cq_result = true;
}
// Client attemts to read the three messages from the server