[metrics] Fix test flakiness

pull/38128/head
Yash Tibrewal 2 weeks ago
parent e352e896cb
commit ce9640790a
  1. 1
      test/core/telemetry/metrics_test.cc

@ -669,6 +669,7 @@ TEST_F(MetricsTest, ParallelStatsPluginRegistrationAndLookup) {
while (GlobalStatsPluginRegistry::GetStatsPluginsForChannel( while (GlobalStatsPluginRegistry::GetStatsPluginsForChannel(
StatsPluginChannelScope("", "", endpoint_config_)) StatsPluginChannelScope("", "", endpoint_config_))
.size() < 10000) { .size() < 10000) {
std::this_thread::yield();
}; };
}); });
} }

Loading…
Cancel
Save