Compare commits

..

2 Commits

Author SHA1 Message Date
4ce457fadf 1.0.3 2016-09-11 16:58:59 +02:00
56d6e0fd45 double time for mongo startup 2016-09-11 16:58:53 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "smartdata", "name": "smartdata",
"version": "1.0.2", "version": "1.0.3",
"description": "do more with data", "description": "do more with data",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",

View File

@ -10,9 +10,9 @@ let testDbConnection: smartdata.DbConnection
describe('mongodb',function(){ describe('mongodb',function(){
it('should start mongodb',function(done){ it('should start mongodb',function(done){
this.timeout(10000) this.timeout(20000)
mongoChildProcess = shelljs.exec('mongod --dbpath=./test/data --port 27017',{async: true}) 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(){ describe('smartdata',function(){