Skip to content

Commit 56db24e

Browse files
committed
fixing various testing issues.
1 parent cb79d9f commit 56db24e

File tree

3 files changed

+2
-32
lines changed

3 files changed

+2
-32
lines changed

src/MongoDB.Driver.Core.TestHelpers/CoreTestConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/MongoDB.Driver.Legacy.Tests/MongoServerTests.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff 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
{

src/MongoDB.Driver.Tests/Specifications/command-monitoring/TestRunner.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)