adapt closing of mongo for CI

This commit is contained in:
2016-09-11 16:40:02 +02:00
parent 8a915446e9
commit 1131e30c3d
2 changed files with 12 additions and 3 deletions

View File

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