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")]