File tree Expand file tree Collapse file tree 2 files changed +0
-2
lines changed
tests/MongoDB.Bson.Tests/ObjectModel Expand file tree Collapse file tree 2 files changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,6 @@ public void TestLargeArrayDeserialization()
628628 }
629629 bsonDocument . Add ( "arrayfield" , bsonArray ) ;
630630 var bson = bsonDocument . ToBson ( ) ;
631- BsonDefaults . MaxDocumentSize = 4 * 1024 * 1024 ;
632631 using ( var lazyBsonDocument = BsonSerializer . Deserialize < LazyBsonDocument > ( bson ) )
633632 {
634633 Assert . Equal ( 2 , lazyBsonDocument . ElementCount ) ;
Original file line number Diff line number Diff line change @@ -865,7 +865,6 @@ public void TestLargeDocumentDeserialization()
865865 bsonDocument . Add ( "doublefield_" + i , i * 1.0 ) ;
866866 }
867867 var bson = bsonDocument . ToBson ( ) ;
868- BsonDefaults . MaxDocumentSize = 4 * 1024 * 1024 ;
869868 using ( var lazyBsonDocument = BsonSerializer . Deserialize < LazyBsonDocument > ( bson ) )
870869 {
871870 Assert . Equal ( noOfDoubleFields + 1 , lazyBsonDocument . ElementCount ) ;
You can’t perform that action at this time.
0 commit comments