[fixit] Scale down large tests (#30687)

We have many tests that create 100 threads or more, and mounting evidence that
this is harmful to our CI environment.

When the original code for many of these tests was written we ran our tests
under run_tests, which had explicit handling for tracking the number of threads
each test needed and making sure that we weren't over subscribing the test
runner. Bazel has no such facility (and the facility in run_tests has since
been removed) and so we need to adjust.

This PR adjusts down a single test and is part of a series so that we can
review and roll back easily if required.
pull/30696/head
Craig Tiller 3 years ago committed by GitHub
parent 18deacbdd1
commit aef59d7b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test/core/client_idle/idle_filter_state_test.cc

@ -58,7 +58,7 @@ TEST(IdleFilterStateTest, StressTest) {
int idle_polls = 0;
int thread_jumps = 0;
std::vector<std::thread> threads;
for (int idx = 0; idx < 100; idx++) {
for (int idx = 0; idx < 10; idx++) {
std::thread t([&] {
int ctr = 0;
auto increase = [&] {

Loading…
Cancel
Save