We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea0c16 commit 06700caCopy full SHA for 06700ca
tests/MongoDB.Driver.Tests/PinnedShardRouterTests.cs
@@ -176,7 +176,8 @@ private DisposableMongoClient CreateDisposableClient(EventCapturer eventCapturer
176
},
177
useMultipleShardRouters);
178
var timeOut = TimeSpan.FromSeconds(60);
179
- SpinWait.SpinUntil(() => client.Cluster.Description.Type != ClusterType.Unknown, timeOut).Should().BeTrue();
+ bool AllServersConnected() => client.Cluster.Description.Servers.All(s => s.State == ServerState.Connected);
180
+ SpinWait.SpinUntil(AllServersConnected, timeOut).Should().BeTrue();
181
return client;
182
}
183
0 commit comments