diff --git a/test/fixtures/interface/http_transaction.js b/test/fixtures/interface/http_transaction.js index e72eee6cd..9c88d11ee 100644 --- a/test/fixtures/interface/http_transaction.js +++ b/test/fixtures/interface/http_transaction.js @@ -1,6 +1,9 @@ var axm = require('pm2.io'); -axm.http(); + +axm.init({ + http: true +}) var http = require('http'); diff --git a/test/interface/bus.fork.spec.mocha.js b/test/interface/bus.fork.spec.mocha.js index 281cd32bc..5ad9f6625 100644 --- a/test/interface/bus.fork.spec.mocha.js +++ b/test/interface/bus.fork.spec.mocha.js @@ -57,13 +57,12 @@ process.on('uncaughtException', function(e) { describe('PM2 BUS / RPC', function() { var pm2 = new PM2.custom({ - independent : true, cwd : __dirname + '/../fixtures/interface' }); var pm2_bus; after(function(done) { - pm2.destroy(done); + pm2.delete('all', () => done()); }); before(function(done) { diff --git a/test/interface/bus.spec.mocha.js b/test/interface/bus.spec.mocha.js index bbf593a9e..3fcf29e27 100644 --- a/test/interface/bus.spec.mocha.js +++ b/test/interface/bus.spec.mocha.js @@ -59,13 +59,12 @@ process.on('uncaughtException', function(e) { describe('PM2 BUS / RPC', function() { var pm2 = new PM2.custom({ - independent : true, cwd : __dirname + '/../fixtures/interface' }); var pm2_bus; after(function(done) { - pm2.destroy(done); + pm2.delete('all', () => done()); }); before(function(done) {