Skip to content

Commit 956a565

Browse files
committed
Remove test for pre-2.4 behavior that didn't execute anyway because checkes within conditionals are not considered assertions by Spock
1 parent 2b36e3e commit 956a565

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,7 @@ class CreateCollectionOperationSpecification extends OperationFunctionalSpecific
163163
then:
164164
stats.getBoolean('capped')
165165
stats.getInteger('max') == 100
166-
if (serverVersionAtLeast([2, 4, 0])) {
167-
stats.getInteger('storageSize') == 40 * 1024
168-
} else {
169-
stats.getInteger('storageSize') >= 40 * 1024 && stats.getInteger('storageSize') <= 41 * 1024
170-
}
166+
stats.getInteger('storageSize') == 40 * 1024
171167

172168
where:
173169
async << [true, false]

0 commit comments

Comments
 (0)