Skip to content

Commit ba10128

Browse files
committed
fixed test which was asserting the wrong thing.
1 parent f127398 commit ba10128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MongoDB.DriverUnitTests/MongoCollectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public void TestCreateCollectionSetStorageOptions()
618618
_database.CreateCollection(collection.Name, options);
619619

620620
var result = _database.RunCommand("listCollections");
621-
var resultCollection = result.Response["collections"].AsBsonArray.Where(doc => doc["name"] == collection.Name).Single();
621+
var resultCollection = result.Response["cursor"]["firstBatch"].AsBsonArray.Where(doc => doc["name"] == collection.Name).Single();
622622
Assert.AreEqual(storageEngineOptions, resultCollection["options"]["storageEngine"]);
623623
}
624624

0 commit comments

Comments
 (0)