Skip to content

Commit 9d75bad

Browse files
committed
test: restrict geoSearch tests to mongodb <= 4.4 (#2612)
1 parent a50d743 commit 9d75bad

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

test/functional/operation_example.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,7 @@ describe('Operation Examples', function() {
17541754
* @ignore
17551755
*/
17561756
it('shouldCorrectlyPerformSimpleGeoHaystackSearchCommand', {
1757-
metadata: { requires: { topology: ['single', 'replicaset'] } },
1757+
metadata: { requires: { mongodb: '<=4.4', topology: ['single', 'replicaset'] } },
17581758

17591759
// The actual test we wish to run
17601760
test: function(done) {

test/functional/operation_generators_example.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ describe('Operation (Generators)', function() {
10931093
* @ignore
10941094
*/
10951095
it('shouldCorrectlyPerformSimpleGeoHaystackSearchCommandWithGenerators', {
1096-
metadata: { requires: { generators: true, topology: ['single'] } },
1096+
metadata: { requires: { mongodb: '<=4.4', generators: true, topology: ['single'] } },
10971097

10981098
// The actual test we wish to run
10991099
test: function() {

test/functional/operation_promises_example.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ describe('Operation (Promises)', function() {
11201120
* @ignore
11211121
*/
11221122
it('shouldCorrectlyPerformSimpleGeoHaystackSearchCommandWithPromises', {
1123-
metadata: { requires: { topology: ['single', 'replicaset'] } },
1123+
metadata: { requires: { mongodb: '<=4.4', topology: ['single', 'replicaset'] } },
11241124

11251125
// The actual test we wish to run
11261126
test: function() {

test/functional/readconcern.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@ describe('ReadConcern', function() {
5959
];
6060

6161
tests.forEach(test => {
62+
const metadata = { requires: { topology: 'replicaset', mongodb: '>= 3.2' } };
63+
if (test.commandName === 'geoSearch') {
64+
metadata.requires.mongodb += ' <=4.4';
65+
}
6266
it(test.description, {
63-
metadata: { requires: { topology: 'replicaset', mongodb: '>= 3.2' } },
64-
67+
metadata,
6568
test: function(done) {
6669
const started = [];
6770
const succeeded = [];

0 commit comments

Comments
 (0)