@@ -549,12 +549,12 @@ public void TestCreateCollectionSetCappedSetMaxDocuments()
549
549
var collection = _database . GetCollection ( "cappedcollection" ) ;
550
550
collection . Drop ( ) ;
551
551
Assert . IsFalse ( collection . Exists ( ) ) ;
552
- var options = CollectionOptions . SetCapped ( true ) . SetMaxSize ( 10000000 ) . SetMaxDocuments ( 1000 ) ;
552
+ var options = CollectionOptions . SetCapped ( true ) . SetMaxSize ( 10000 ) . SetMaxDocuments ( 1000 ) ;
553
553
_database . CreateCollection ( collection . Name , options ) ;
554
554
Assert . IsTrue ( collection . Exists ( ) ) ;
555
555
var stats = collection . GetStats ( ) ;
556
556
Assert . IsTrue ( stats . IsCapped ) ;
557
- Assert . IsTrue ( stats . StorageSize >= 10000000 ) ;
557
+ Assert . IsTrue ( stats . StorageSize >= 10000 ) ;
558
558
Assert . IsTrue ( stats . MaxDocuments == 1000 ) ;
559
559
collection . Drop ( ) ;
560
560
}
@@ -566,12 +566,12 @@ public void TestCreateCollectionSetCappedSetMaxSize()
566
566
var collection = _database . GetCollection ( "cappedcollection" ) ;
567
567
collection . Drop ( ) ;
568
568
Assert . IsFalse ( collection . Exists ( ) ) ;
569
- var options = CollectionOptions . SetCapped ( true ) . SetMaxSize ( 5000000000 ) ;
569
+ var options = CollectionOptions . SetCapped ( true ) . SetMaxSize ( 10000 ) ;
570
570
_database . CreateCollection ( collection . Name , options ) ;
571
571
Assert . IsTrue ( collection . Exists ( ) ) ;
572
572
var stats = collection . GetStats ( ) ;
573
573
Assert . IsTrue ( stats . IsCapped ) ;
574
- Assert . IsTrue ( stats . StorageSize >= 5000000000 ) ;
574
+ Assert . IsTrue ( stats . StorageSize >= 10000 ) ;
575
575
collection . Drop ( ) ;
576
576
}
577
577
@@ -2297,7 +2297,7 @@ public void TestIsCappedTrue()
2297
2297
{
2298
2298
var collection = _database . GetCollection ( "cappedcollection" ) ;
2299
2299
collection . Drop ( ) ;
2300
- var options = CollectionOptions . SetCapped ( true ) . SetMaxSize ( 100000 ) ;
2300
+ var options = CollectionOptions . SetCapped ( true ) . SetMaxSize ( 10000 ) ;
2301
2301
_database . CreateCollection ( "cappedcollection" , options ) ;
2302
2302
2303
2303
Assert . AreEqual ( true , collection . Exists ( ) ) ;
0 commit comments