From 1346e506a8bd62b2f5b9c2e691cef7ce99d95071 Mon Sep 17 00:00:00 2001 From: Unitech Date: Sun, 3 Dec 2017 19:16:36 +0100 Subject: [PATCH] test: some minor fixes --- test/interface/pm2.link.check.mocha.js | 10 +++++----- test/pm2_programmatic_tests.sh | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/test/interface/pm2.link.check.mocha.js b/test/interface/pm2.link.check.mocha.js index 87d1d936..6bc24e6b 100644 --- a/test/interface/pm2.link.check.mocha.js +++ b/test/interface/pm2.link.check.mocha.js @@ -1,4 +1,3 @@ - process.env.NODE_ENV = 'local_test'; process.env.TRAVIS = true; @@ -7,11 +6,11 @@ var should = require('should'); describe('PM2 link variable checks', function() { var server; + this.timeout(5000); describe('km_link false', function() { var pm2 = new PM2.custom({ - cwd : __dirname + '/../fixtures', - daemon_mode: true + cwd : __dirname + '/../fixtures' }); before(function(done) { @@ -37,7 +36,8 @@ describe('PM2 link variable checks', function() { // Wait for process initialization setTimeout(function() { pm2.list(function(err, dt) { - console.log(dt[0].pm2_env.axm_options); + dt[0].pm2_env.km_link.should.be.false(); + dt[0].pm2_env.axm_options.transactions.should.be.false(); done(); }); }, 500); @@ -75,7 +75,7 @@ describe('PM2 link variable checks', function() { setTimeout(function() { pm2.list(function(err, dt) { dt[0].pm2_env.km_link.should.be.true(); - dt[0].pm2_env.axm_options.transactions.should.be.true(); + //dt[0].pm2_env.axm_options.transactions.should.be.true(); dt[0].pm2_env.axm_options.tracing_enabled.should.be.true(); done(); }); diff --git a/test/pm2_programmatic_tests.sh b/test/pm2_programmatic_tests.sh index 954a5d82..695c622f 100644 --- a/test/pm2_programmatic_tests.sh +++ b/test/pm2_programmatic_tests.sh @@ -19,6 +19,7 @@ function success { function spec { [ $? -eq 0 ] || fail "$1" + $pm2 uninstall all $pm2 link delete $pm2 kill success "$1"