aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/end2end/end2end_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/end2end/end2end_test.cc')
-rw-r--r--test/cpp/end2end/end2end_test.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/cpp/end2end/end2end_test.cc b/test/cpp/end2end/end2end_test.cc
index 02d1f7ac4f..89a556c587 100644
--- a/test/cpp/end2end/end2end_test.cc
+++ b/test/cpp/end2end/end2end_test.cc
@@ -683,10 +683,14 @@ TEST_P(End2endTest, RequestStreamServerEarlyCancelTest) {
auto stream = stub_->RequestStream(&context, &response);
request.set_message("hello");
int send_messages = 20;
- while (send_messages > 0) {
+ while (send_messages > 10) {
EXPECT_TRUE(stream->Write(request));
send_messages--;
}
+ while (send_messages > 0) {
+ stream->Write(request);
+ send_messages--;
+ }
stream->WritesDone();
Status s = stream->Finish();
EXPECT_EQ(s.error_code(), StatusCode::CANCELLED);