File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
driver-core/src/test/functional/com/mongodb/client/model Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
249
249
250
250
helper. drop()
251
251
252
- (0 .. 50 ). forEach {
252
+ (0 .. 50 ). each {
253
253
def size = (35 + it)
254
254
def manufacturer = [' Sony' , ' Samsung' , ' Vizio' ][it % 3 ]
255
255
helper. insertDocuments(Document . parse(""" {
@@ -415,7 +415,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
415
415
416
416
helper. drop()
417
417
418
- (1 .. 100 ). forEach {
418
+ (1 .. 100 ). each {
419
419
helper. insertDocuments(Document . parse(" {price: ${ it * 2} }" ))
420
420
}
421
421
@@ -450,7 +450,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
450
450
helper. drop()
451
451
452
452
def random = new SecureRandom ()
453
- (1 .. 2000 ). forEach {
453
+ (1 .. 2000 ). each {
454
454
def document = new Document (' price' , random. nextDouble() * 5000D + 5.01D )
455
455
helper. insertDocuments(document)
456
456
}
@@ -478,7 +478,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
478
478
479
479
def random = new SecureRandom ()
480
480
def total = random. nextInt(2000 )
481
- (1 .. total). forEach {
481
+ (1 .. total). each {
482
482
helper. insertDocuments(new Document (' price' , random. nextDouble() * 5000D + 5.01D ))
483
483
}
484
484
You can’t perform that action at this time.
0 commit comments