From 7acfd4efd14385793b8b5dd9285113912c062894 Mon Sep 17 00:00:00 2001 From: adelinowona Date: Fri, 1 Aug 2025 17:00:33 -0400 Subject: [PATCH] CSHARP-5689: Disable flaky pool-clear-min-pool-size-error spec tests --- .../Specifications/UnifiedTestSpecRunner.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/MongoDB.Driver.Tests/Specifications/UnifiedTestSpecRunner.cs b/tests/MongoDB.Driver.Tests/Specifications/UnifiedTestSpecRunner.cs index 6772ea4a33a..2b6fb4aca1b 100644 --- a/tests/MongoDB.Driver.Tests/Specifications/UnifiedTestSpecRunner.cs +++ b/tests/MongoDB.Driver.Tests/Specifications/UnifiedTestSpecRunner.cs @@ -149,8 +149,15 @@ public void RetryableWrites(JsonDrivenTestCase testCase) [Category("SDAM", "SupportLoadBalancing")] [UnifiedTestsTheory("server_discovery_and_monitoring.tests.unified")] - public void ServerDiscoveryAndMonitoring(JsonDrivenTestCase testCase) => + public void ServerDiscoveryAndMonitoring(JsonDrivenTestCase testCase) + { + if (testCase.Name.Contains("pool-clear-")) + { + throw new SkipException("This test is flaky and is skipped while being investigated."); + } + Run(testCase, IsSdamLogValid, new SdamRunnerEventsProcessor(testCase.Name)); + } [Category("SupportLoadBalancing")] [UnifiedTestsTheory("server_selection.tests.logging")]