Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: restrict geoSearch tests to mongodb <= 4.4 #2612

Merged
merged 1 commit into from Nov 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/functional/operation_example.test.js
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
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
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
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