Skip to content

Commit 9672a6c

Browse files
committed
testing default
1 parent 2202250 commit 9672a6c

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ env:
2828
global:
2929
- COVERAGE_OPTION='./node_modules/.bin/nyc'
3030
matrix:
31-
- MONGODB_VERSION=3.0.8
32-
- MONGODB_VERSION=3.2.6
31+
-
3332
- PARSE_SERVER_TEST_DB=postgres
3433
- PARSE_SERVER_TEST_CACHE=redis
3534
before_script:

spec/helper.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,11 @@ if (process.env.PARSE_SERVER_TEST_DB === 'postgres') {
4747
uri: process.env.PARSE_SERVER_TEST_DATABASE_URI || postgresURI,
4848
collectionPrefix: 'test_',
4949
});
50-
} else {
51-
startDB = function(done) {
52-
require('mongodb-runner/mocha/before').bind({
53-
timeout: () => {},
54-
slow: () => {}
55-
})(() => {
56-
setTimeout(done, 500);
57-
});
58-
}
50+
} else if (process.env.TRAVIS != 'true') {
51+
startDB = require('mongodb-runner/mocha/before').bind({
52+
timeout: () => {},
53+
slow: () => {}
54+
})
5955
stopDB = require('mongodb-runner/mocha/after');
6056
databaseAdapter = new MongoStorageAdapter({
6157
uri: mongoURI,

0 commit comments

Comments
 (0)