diff --git a/test/core/telemetry/metrics_test.cc b/test/core/telemetry/metrics_test.cc index 8c57fb3790d..e8b0de32f19 100644 --- a/test/core/telemetry/metrics_test.cc +++ b/test/core/telemetry/metrics_test.cc @@ -669,6 +669,7 @@ TEST_F(MetricsTest, ParallelStatsPluginRegistrationAndLookup) { while (GlobalStatsPluginRegistry::GetStatsPluginsForChannel( StatsPluginChannelScope("", "", endpoint_config_)) .size() < 10000) { + std::this_thread::yield(); }; }); }