enabled MongoDB transaction test for MongoDB >= 4.0.4 (#6827)

This commit is contained in:
Manuel
2020-07-25 19:11:10 +02:00
committed by GitHub
parent 6f1210c325
commit 114d78e80a
3 changed files with 8 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
const batch = require('../lib/batch');
const request = require('../lib/request');
const TestUtils = require('../lib/TestUtils');
const semver = require('semver');
const originalURL = '/parse/batch';
const serverURL = 'http://localhost:1234/parse';
@@ -153,7 +154,7 @@ describe('batch', () => {
});
if (
(process.env.MONGODB_VERSION === '4.0.4' &&
(semver.satisfies(process.env.MONGODB_VERSION, '>=4.0.4') &&
process.env.MONGODB_TOPOLOGY === 'replicaset' &&
process.env.MONGODB_STORAGE_ENGINE === 'wiredTiger') ||
process.env.PARSE_SERVER_TEST_DB === 'postgres'
@@ -161,7 +162,7 @@ describe('batch', () => {
describe('transactions', () => {
beforeAll(async () => {
if (
process.env.MONGODB_VERSION === '4.0.4' &&
semver.satisfies(process.env.MONGODB_VERSION, '>=4.0.4') &&
process.env.MONGODB_TOPOLOGY === 'replicaset' &&
process.env.MONGODB_STORAGE_ENGINE === 'wiredTiger'
) {