diff options
author | Craig Tiller <ctiller@google.com> | 2016-07-07 10:41:48 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-07-07 10:41:48 -0700 |
commit | 6c8619bbe7a0eb8ca65782886e8253ebbec87b54 (patch) | |
tree | 5af31131088d09dd67f2c3c2fc8c7762b9efc53b /test/cpp | |
parent | e940d30f4cd99616329164cfe58ee80d4dcb824b (diff) |
Better fix for flow control bug
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/end2end/end2end_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cpp/end2end/end2end_test.cc b/test/cpp/end2end/end2end_test.cc index 354a59cedd..0f87ae3e44 100644 --- a/test/cpp/end2end/end2end_test.cc +++ b/test/cpp/end2end/end2end_test.cc @@ -1166,6 +1166,9 @@ TEST_P(ProxyEnd2endTest, HugeResponse) { request.mutable_param()->set_response_message_length(kResponseSize); ClientContext context; + std::chrono::system_clock::time_point deadline = + std::chrono::system_clock::now() + std::chrono::seconds(20); + context.set_deadline(deadline); Status s = stub_->Echo(&context, request, &response); EXPECT_EQ(kResponseSize, response.message().size()); EXPECT_TRUE(s.ok()); |