Skip to content

Commit aa670f9

Browse files
committed
Fix test of sizeInBytes for CreateCollectionOperation
1 parent ef65a7f commit aa670f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver-core/src/test/functional/com/mongodb/operation/CreateCollectionOperationSpecification.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ class CreateCollectionOperationSpecification extends OperationFunctionalSpecific
180180
then:
181181
stats.getBoolean('capped')
182182
stats.getInteger('max') == 100
183-
stats.getInteger('storageSize') == 40 * 1024
183+
// Starting in 3.0, the size in bytes moved from storageSize to maxSize
184+
stats.getInteger('maxSize') == 40 * 1024 || stats.getInteger('storageSize') == 40 * 1024
184185

185186
where:
186187
async << [true, false]

0 commit comments

Comments
 (0)