File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 25
25
global :
26
26
- COVERAGE_OPTION='./node_modules/.bin/nyc'
27
27
matrix :
28
- - MONGODB_VERSION=4.0.4
28
+ - MONGODB_VERSION=4.0.4 MONGODB_TOPOLOGY=replicaset
29
29
- MONGODB_VERSION=3.6.9
30
30
- PARSE_SERVER_TEST_DB=postgres
31
31
- PARSE_SERVER_TEST_CACHE=redis
@@ -38,11 +38,6 @@ before_install:
38
38
- nvm use $NODE_VERSION
39
39
- npm install -g greenkeeper-lockfile@1
40
40
before_script :
41
- - echo "replSet = rs0" | sudo tee -a /etc/mongodb.conf
42
- - sudo service mongodb restart
43
- - sleep 20
44
- - mongo --eval 'rs.initiate()'
45
- - sleep 20
46
41
- node -e 'require("./lib/index.js")'
47
42
- psql -c 'create database parse_server_postgres_adapter_test_database;' -U postgres
48
43
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d parse_server_postgres_adapter_test_database
Original file line number Diff line number Diff line change @@ -153,16 +153,20 @@ describe('batch', () => {
153
153
} ) ;
154
154
155
155
if (
156
- process . env . MONGODB_VERSION === '4.0.4' ||
156
+ ( process . env . MONGODB_VERSION === '4.0.4' &&
157
+ process . env . MONGODB_TOPOLOGY === 'replicaset' ) ||
157
158
process . env . PARSE_SERVER_TEST_DB === 'postgres'
158
159
) {
159
160
describe ( 'transactions' , ( ) => {
160
161
beforeAll ( async ( ) => {
161
- if ( process . env . MONGODB_VERSION === '4.0.4' ) {
162
+ if (
163
+ process . env . MONGODB_VERSION === '4.0.4' &&
164
+ process . env . MONGODB_TOPOLOGY === 'replicaset'
165
+ ) {
162
166
await reconfigureServer ( {
163
167
databaseAdapter : undefined ,
164
168
databaseURI :
165
- 'mongodb://localhost:27017/parseServerMongoAdapterTestDatabase?replicaSet=rs0 ' ,
169
+ 'mongodb://localhost:27017/parseServerMongoAdapterTestDatabase?replicaSet=replicaset ' ,
166
170
} ) ;
167
171
}
168
172
} ) ;
You can’t perform that action at this time.
0 commit comments