add some time for mongodb startup

This commit is contained in:
2016-09-11 16:56:23 +02:00
parent 3be5c3b8ab
commit a861444c30
2 changed files with 5 additions and 3 deletions

View File

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