From ce9640790ad3f853e74c24b473b80f3f5a161ee5 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Fri, 15 Nov 2024 01:31:06 +0000 Subject: [PATCH] [metrics] Fix test flakiness --- test/core/telemetry/metrics_test.cc | 1 + 1 file changed, 1 insertion(+) 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(); }; }); }