diff options
author | 2018-08-15 16:30:59 -0700 | |
---|---|---|
committer | 2018-08-15 16:30:59 -0700 | |
commit | 16f738359db28c5c2293c05d91038192345f75e1 (patch) | |
tree | eb6c0f48c3c64cc48207019f214ca28d23ec7605 /test/cpp/end2end/thread_stress_test.cc | |
parent | 9c32dab63dc031e71412bdb90865eafbc1f18746 (diff) |
Make sure that we actually saw some resource exhaustion if applicable
Diffstat (limited to 'test/cpp/end2end/thread_stress_test.cc')
-rw-r--r-- | test/cpp/end2end/thread_stress_test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cpp/end2end/thread_stress_test.cc b/test/cpp/end2end/thread_stress_test.cc index 94ad684fe7..1a5ed28a2c 100644 --- a/test/cpp/end2end/thread_stress_test.cc +++ b/test/cpp/end2end/thread_stress_test.cc @@ -320,6 +320,10 @@ TYPED_TEST(End2endTest, ThreadStress) { if (error_cnt != 0) { gpr_log(GPR_INFO, "RPC error count: %" PRIu64, error_cnt); } + // If this test allows resource exhaustion, expect that it actually sees some + if (this->common_.AllowExhaustion()) { + EXPECT_GT(error_cnt, static_cast<uint64_t>(0)); + } } template <class Common> |