From 007b3c50d57b4264f8758209c33ae2f25b88ee37 Mon Sep 17 00:00:00 2001 From: BorisDog Date: Thu, 15 Jun 2023 19:03:51 -0700 Subject: [PATCH] CSHARP-4677: Server selection logging tests fail on Load Balancer (#1110) --- .../UnifiedTestOperations/Matchers/UnifiedEventMatcher.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedEventMatcher.cs b/tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedEventMatcher.cs index 64938997ff5..e394b4d4459 100644 --- a/tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedEventMatcher.cs +++ b/tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedEventMatcher.cs @@ -116,6 +116,7 @@ static string GetServerDescriptionChangedFilter(BsonElement elements) static ServerType MapServerType(string value) => value switch { + "LoadBalancer" => ServerType.LoadBalanced, "Unknown" => ServerType.Unknown, _ => throw new Exception($"Unsupported event filter server type: {value}."), };