fix mongo shutdown

This commit is contained in:
2016-09-11 16:44:36 +02:00
parent 1131e30c3d
commit f73e4c4dc3
2 changed files with 5 additions and 12 deletions

View File

@@ -29,10 +29,7 @@ describe('smartdata',function(){
describe('mongodb',function(){
it('should kill mongodb',function(){
if (process.env.CI === "true"){
mongoChildProcess.kill('SIGKILL')
} else {
mongoChildProcess.kill('SIGTERM')
}
shelljs.exec('mongod --shutdown')
mongoChildProcess.kill('SIGTERM')
})
})