Skip to content

Commit 007b3c5

Browse files
authored
CSHARP-4677: Server selection logging tests fail on Load Balancer (#1110)
1 parent 32f1d30 commit 007b3c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedEventMatcher.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ static string GetServerDescriptionChangedFilter(BsonElement elements)
116116

117117
static ServerType MapServerType(string value) => value switch
118118
{
119+
"LoadBalancer" => ServerType.LoadBalanced,
119120
"Unknown" => ServerType.Unknown,
120121
_ => throw new Exception($"Unsupported event filter server type: {value}."),
121122
};

0 commit comments

Comments
 (0)