enabled MongoDB transaction test for MongoDB >= 4.0.4 (#6827)
This commit is contained in:
@@ -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'
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user