Skip to content

Commit 85bf2a0

Browse files
committed
revert changes
1 parent 720f1b5 commit 85bf2a0

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- name: Mongo 4.4.0, ReplicaSet, WiredTiger
20-
MONGODB_VERSION: 4.4.0
19+
- name: Mongo 4.0.4, ReplicaSet, WiredTiger
20+
MONGODB_VERSION: 4.0.4
2121
MONGODB_TOPOLOGY: replicaset
2222
MONGODB_STORAGE_ENGINE: wiredTiger
2323
NODE_VERSION: 10

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@
9999
"lint-fix": "eslint --fix --cache ./",
100100
"build": "babel src/ -d lib/ --copy-files",
101101
"watch": "babel --watch src/ -d lib/ --copy-files",
102-
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.4.0} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=replicaset} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} mongodb-runner start",
103-
"testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.4.0} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=replicaset} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} TESTING=1 jasmine",
102+
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=mmapv1} mongodb-runner start",
103+
"testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=mmapv1} TESTING=1 jasmine",
104104
"test": "npm run testonly",
105-
"posttest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.4.0} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=replicaset} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} mongodb-runner stop",
106-
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.4.0} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=replicaset} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} TESTING=1 nyc jasmine",
105+
"posttest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=mmapv1} mongodb-runner stop",
106+
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=mmapv1} TESTING=1 nyc jasmine",
107107
"start": "node ./bin/parse-server",
108108
"prettier": "prettier --write {src,spec}/{**/*,*}.js",
109109
"prepare": "npm run build",

spec/ParseServerRESTController.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ describe('ParseServerRESTController', () => {
163163
});
164164

165165
if (
166-
(semver.satisfies(process.env.MONGODB_VERSION, '>=4.4.0') &&
166+
(semver.satisfies(process.env.MONGODB_VERSION, '>=4.0.4') &&
167167
process.env.MONGODB_TOPOLOGY === 'replicaset' &&
168168
process.env.MONGODB_STORAGE_ENGINE === 'wiredTiger') ||
169169
process.env.PARSE_SERVER_TEST_DB === 'postgres'
170170
) {
171171
describe('transactions', () => {
172172
beforeAll(async () => {
173173
if (
174-
semver.satisfies(process.env.MONGODB_VERSION, '>=4.4.0') &&
174+
semver.satisfies(process.env.MONGODB_VERSION, '>=4.0.4') &&
175175
process.env.MONGODB_TOPOLOGY === 'replicaset' &&
176176
process.env.MONGODB_STORAGE_ENGINE === 'wiredTiger'
177177
) {

spec/batch.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ describe('batch', () => {
167167
});
168168

169169
if (
170-
(semver.satisfies(process.env.MONGODB_VERSION, '>=4.4.0') &&
170+
(semver.satisfies(process.env.MONGODB_VERSION, '>=4.0.4') &&
171171
process.env.MONGODB_TOPOLOGY === 'replicaset' &&
172172
process.env.MONGODB_STORAGE_ENGINE === 'wiredTiger') ||
173173
process.env.PARSE_SERVER_TEST_DB === 'postgres'

0 commit comments

Comments
 (0)