fix mongo shutdown

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

View File

@ -23,12 +23,8 @@ describe('smartdata', function () {
}); });
describe('mongodb', function () { describe('mongodb', function () {
it('should kill mongodb', function () { it('should kill mongodb', function () {
if (process.env.CI === "true") { shelljs.exec('mongod --shutdown');
mongoChildProcess.kill('SIGKILL'); mongoChildProcess.kill('SIGTERM');
}
else {
mongoChildProcess.kill('SIGTERM');
}
}); });
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sY0FDUCxDQUFDLENBRG9CO0FBQ3JCLE1BQVksT0FBTyxXQUFNLFNBQ3pCLENBQUMsQ0FEaUM7QUFFbEMsTUFBWSxTQUFTLFdBQU0sZUFHM0IsQ0FBQyxDQUh5QztBQUcxQyxJQUFJLGlCQUFpQixDQUFBO0FBQ3JCLElBQUksZ0JBQXdDLENBQUE7QUFHNUMsUUFBUSxDQUFDLFNBQVMsRUFBQztJQUNmLEVBQUUsQ0FBQyxzQkFBc0IsRUFBQyxVQUFTLElBQUk7UUFDbkMsaUJBQWlCLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQywwQ0FBMEMsRUFBQyxFQUFDLEtBQUssRUFBRSxJQUFJLEVBQUMsQ0FBQyxDQUFBO1FBQzFGLFVBQVUsQ0FBQyxRQUFRLElBQUksRUFBRSxDQUFBLENBQUMsQ0FBQyxFQUFFLElBQUksQ0FBQyxDQUFBO0lBQ3RDLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFDLENBQUE7QUFDRixRQUFRLENBQUMsV0FBVyxFQUFDO0lBQ2pCLEVBQUUsQ0FBQywwQ0FBMEMsRUFBQyxVQUFT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RQUNyQixPQUFPLENBQUMsSUFBSSxDQUFDLG1CQUFtQixDQUFDLENBQUE7UUFDakMsaUJBQWlCLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFBO0lBQ3JDLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFDLENBQUEifQ==

View File

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