Skip to content

Commit

Permalink
test: adapt test to new api
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed May 11, 2018
1 parent b85ca3c commit 7a275e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion test/fixtures/interface/http_transaction.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

var axm = require('pm2.io');
axm.http();

axm.init({
http: true
})

var http = require('http');

Expand Down
3 changes: 1 addition & 2 deletions test/interface/bus.fork.spec.mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions test/interface/bus.spec.mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7a275e2

Please sign in to comment.