Add comment

pull/38128/head
Yash Tibrewal 1 week ago
parent ce9640790a
commit 4ac65b2d80
  1. 1
      test/core/telemetry/metrics_test.cc

@ -669,6 +669,7 @@ TEST_F(MetricsTest, ParallelStatsPluginRegistrationAndLookup) {
while (GlobalStatsPluginRegistry::GetStatsPluginsForChannel(
StatsPluginChannelScope("", "", endpoint_config_))
.size() < 10000) {
// Yield to avoid starving the register threads.
std::this_thread::yield();
};
});

Loading…
Cancel
Save