Skip to content

Commit e393123

Browse files
committed
Fixed aggregation test so it does not run against mongodb < 2.6
1 parent a53fd2c commit e393123

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/functional/generator_based_tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
exports['should maintain batch size between calls to receive new batches'] = {
22
metadata: {
3-
requires: { generators: true, topology: 'single' , node: ">6.0.0" }
3+
// MongoDb must be > 2.6.0 as aggregate did not return a cursor before this version
4+
requires: { generators: true, topology: 'single' , node: ">6.0.0", mongodb: ">=2.6.0" }
45
},
56

67
// The actual test we wish to run

test/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,13 @@ try {
358358
testFiles.push('/test/functional/operation_generators_example_tests.js');
359359
// Mock tests
360360
testFiles.push('/test/functional/command_write_concern_tests.js');
361-
testFiles.push('/test/functional/replicaset_mock_tests.js');
362361
testFiles.push('/test/functional/collations_tests.js');
363362
testFiles.push('/test/functional/max_staleness_tests.js');
364363
testFiles.push('/test/functional/buffering_proxy_tests.js');
365364
testFiles.push('/test/functional/view_tests.js');
366365
testFiles.push('/test/functional/crud_spec_tests.js');
367366
testFiles.push('/test/functional/generator_based_tests.js');
367+
testFiles.push('/test/functional/replicaset_mock_tests.js');
368368
} catch(err) {}
369369

370370
// Add all the tests to run

0 commit comments

Comments
 (0)