Make sure that we actually saw some resource exhaustion if applicable

pull/16356/head
Vijay Pai 7 years ago
parent 9c32dab63d
commit 16f738359d
  1. 4
      test/cpp/end2end/thread_stress_test.cc

@ -320,6 +320,10 @@ TYPED_TEST(End2endTest, ThreadStress) {
if (error_cnt != 0) { if (error_cnt != 0) {
gpr_log(GPR_INFO, "RPC error count: %" PRIu64, error_cnt); 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> template <class Common>

Loading…
Cancel
Save