The TestDropAllIndexes test can fail depending on what order the tests are run in. The test assumes the database already exist but it might not.
Output of failed test:
MongoDB.Driver.Tests.MongoCollectionTests.TestDropAllIndexes [FAIL] MongoDB.Driver.MongoCommandException : Command dropIndexes failed: database Tests12300427 not found. Stack Trace: D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Core\Core\WireProtocol\CommandWireProtocol.cs(196,0): at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.ProcessReply(ConnectionId connectionId, ReplyMessage`1 reply) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Core\Core\WireProtocol\CommandWireProtocol.cs(111,0): at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.Execute(IConnection connection, CancellationToken cancellationToken) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Core\Core\Servers\Server.cs(698,0): at MongoDB.Driver.Core.Servers.Server.ServerChannel.ExecuteProtocol[TResult](IWireProtocol`1 protocol, CancellationToken cancellationToken) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Core\Core\Servers\Server.cs(348,0): at MongoDB.Driver.Core.Servers.Server.ServerChannel.Command[TResult](DatabaseNamespace databaseNamespace, BsonDocument command, IElementNameValidator commandValidator, Func`1 responseHandling, Boolean slaveOk, IBsonSerializer`1 resultSerializer, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Core\Core\Operations\CommandOperationBase.cs(181,0): at MongoDB.Driver.Core.Operations.CommandOperationBase`1.ExecuteProtocol(IChannelHandle channel, ServerDescription serverDescription, ReadPreference readPreference, CancellationToken cancellationToken) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Core\Core\Operations\CommandOperationBase.cs(206,0): at MongoDB.Driver.Core.Operations.CommandOperationBase`1.ExecuteProtocol(IChannelSource channelSource, ReadPreference readPreference, CancellationToken cancellationToken) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Core\Core\Operations\WriteCommandOperation.cs(57,0): at MongoDB.Driver.Core.Operations.WriteCommandOperation`1.Execute(IWriteBinding binding, CancellationToken cancellationToken) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Core\Core\Operations\DropIndexOperation.cs(151,0): at MongoDB.Driver.Core.Operations.DropIndexOperation.Execute(IWriteBinding binding, CancellationToken cancellationToken) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Legacy\MongoCollection.cs(2093,0): at MongoDB.Driver.MongoCollection.ExecuteWriteOperation[TResult](IWriteOperation`1 operation) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Legacy\MongoCollection.cs(418,0): at MongoDB.Driver.MongoCollection.DropIndexByName(String indexName) D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\src\MongoDB.Driver.Legacy\MongoCollection.cs(382,0): at MongoDB.Driver.MongoCollection.DropAllIndexes() D:\jenkins\workspace\mongo-csharp-driver-test-windows\4e0fc978\tests\MongoDB.Driver.Legacy.Tests\MongoCollectionTests.cs(853,0): at MongoDB.Driver.Tests.MongoCollectionTests.TestDropAllIndexes()