double time for mongo startup

This commit is contained in:
Philipp Kunz 2016-09-11 16:58:53 +02:00
parent 89ebf23d46
commit 56d6e0fd45

View File

@ -10,9 +10,9 @@ let testDbConnection: smartdata.DbConnection
describe('mongodb',function(){
it('should start mongodb',function(done){
this.timeout(10000)
this.timeout(20000)
mongoChildProcess = shelljs.exec('mongod --dbpath=./test/data --port 27017',{async: true})
setTimeout(() => { done() }, 5000) // give mongodb it some time to complete startup
setTimeout(() => { done() }, 10000) // give mongodb it some time to complete startup
})
})
describe('smartdata',function(){