Update MongoDB to 3.3.5 (#6263)
* Update MongoDB to 3.3.5 * xit * try again * set timeout for tests * remove flaky test * Update package-lock.json * fix conflicts
This commit is contained in:
committed by
Antonio Davi Macedo Coelho de Castro
parent
aa5e3f5f1a
commit
3de12faddc
@@ -1,10 +1,23 @@
|
||||
#!/usr/bin/env node
|
||||
const MongoStorageAdapter = require('../../lib/Adapters/Storage/Mongo/MongoStorageAdapter')
|
||||
.default;
|
||||
const {
|
||||
GridFSBucketAdapter,
|
||||
} = require('../../lib/Adapters/Files/GridFSBucketAdapter');
|
||||
|
||||
const ParseServer = require('../../lib/index').ParseServer;
|
||||
|
||||
const databaseURI =
|
||||
'mongodb://doesnotexist:27017/parseServerMongoAdapterTestDatabase';
|
||||
|
||||
ParseServer.start({
|
||||
appId: 'test',
|
||||
masterKey: 'test',
|
||||
databaseURI:
|
||||
'mongodb://doesnotexist:27017/parseServerMongoAdapterTestDatabase',
|
||||
databaseAdapter: new MongoStorageAdapter({
|
||||
uri: databaseURI,
|
||||
mongoOptions: {
|
||||
serverSelectionTimeoutMS: 2000,
|
||||
},
|
||||
}),
|
||||
filesAdapter: new GridFSBucketAdapter(databaseURI),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user