Skip to content

Commit

Permalink
test: restrict geoSearch tests to mongodb <= 4.4 (#2612)
Browse files Browse the repository at this point in the history
  • Loading branch information
emadum authored Nov 6, 2020
1 parent 186090e commit f0cee7a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/functional/operation_example.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ describe('Operation Examples', function() {
* @ignore
*/
it('shouldCorrectlyPerformSimpleGeoHaystackSearchCommand', {
metadata: { requires: { topology: ['single', 'replicaset'] } },
metadata: { requires: { mongodb: '<=4.4', topology: ['single', 'replicaset'] } },

// The actual test we wish to run
test: function(done) {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/operation_generators_example.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ describe('Operation (Generators)', function() {
* @ignore
*/
it('shouldCorrectlyPerformSimpleGeoHaystackSearchCommandWithGenerators', {
metadata: { requires: { generators: true, topology: ['single'] } },
metadata: { requires: { mongodb: '<=4.4', generators: true, topology: ['single'] } },

// The actual test we wish to run
test: function() {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/operation_promises_example.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ describe('Operation (Promises)', function() {
* @ignore
*/
it('shouldCorrectlyPerformSimpleGeoHaystackSearchCommandWithPromises', {
metadata: { requires: { topology: ['single', 'replicaset'] } },
metadata: { requires: { mongodb: '<=4.4', topology: ['single', 'replicaset'] } },

// The actual test we wish to run
test: function() {
Expand Down
7 changes: 5 additions & 2 deletions test/functional/readconcern.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ describe('ReadConcern', function() {
];

tests.forEach(test => {
const metadata = { requires: { topology: 'replicaset', mongodb: '>= 3.2' } };
if (test.commandName === 'geoSearch') {
metadata.requires.mongodb += ' <=4.4';
}
it(test.description, {
metadata: { requires: { topology: 'replicaset', mongodb: '>= 3.2' } },

metadata,
test: function(done) {
const started = [];
const succeeded = [];
Expand Down

0 comments on commit f0cee7a

Please sign in to comment.