File tree Expand file tree Collapse file tree 3 files changed +2
-32
lines changed
MongoDB.Driver.Core.TestHelpers
MongoDB.Driver.Legacy.Tests
MongoDB.Driver.Tests/Specifications/command-monitoring Expand file tree Collapse file tree 3 files changed +2
-32
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public static ClusterBuilder ConfigureCluster(ClusterBuilder builder)
8686 var serverSelectionTimeoutString = Environment . GetEnvironmentVariable ( "MONGO_SERVER_SELECTION_TIMEOUT_MS" ) ;
8787 if ( serverSelectionTimeoutString == null )
8888 {
89- serverSelectionTimeoutString = "10000 " ;
89+ serverSelectionTimeoutString = "30000 " ;
9090 }
9191
9292 builder = builder
Original file line number Diff line number Diff line change @@ -229,35 +229,6 @@ public void TestReplicaSetName()
229229 }
230230 }
231231
232- [ Test ]
233- public void TestReplicaSetMemberCount ( )
234- {
235- if ( _isReplicaSet )
236- {
237- var isMasterResult = _database . RunCommand ( "isMaster" ) . Response ;
238- BsonValue hosts ;
239- int hostCount = 0 ;
240- if ( isMasterResult . TryGetValue ( "hosts" , out hosts ) )
241- {
242- hostCount = hosts . AsBsonArray . Count ;
243- }
244- BsonValue passives ;
245- int passiveCount = 0 ;
246- if ( isMasterResult . TryGetValue ( "passives" , out passives ) )
247- {
248- passiveCount = passives . AsBsonArray . Count ;
249- }
250- BsonValue arbiters ;
251- int arbiterCount = 0 ;
252- if ( isMasterResult . TryGetValue ( "arbiters" , out arbiters ) )
253- {
254- arbiterCount = arbiters . AsBsonArray . Count ;
255- }
256- Assert . AreEqual ( hostCount + passiveCount + arbiterCount ,
257- _server . Instances . Length ) ;
258- }
259- }
260-
261232 [ Test ]
262233 public void TestRequestStart ( )
263234 {
Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ public class TestRunner
3939
4040 private static string [ ] __commandsToCapture ;
4141
42- [ TestFixtureSetUp ]
43- public void TestFixtureSetup ( )
42+ static TestRunner ( )
4443 {
4544 __commandsToCapture = new string [ ]
4645 {
You can’t perform that action at this time.
0 commit comments