Skip to content

Commit ecca508

Browse files
committed
(test) ensure fresh PM2 for custom actions
1 parent 2f54366 commit ecca508

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/programmatic/custom_action.mocha.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ describe('Custom actions via CLI/API', function() {
1212
});
1313

1414
before(function(done) {
15-
pm2.connect(done);
15+
pm2.connect(function() {
16+
pm2.kill(function() {
17+
pm2.connect(done);
18+
})
19+
});
1620
});
1721

1822
it('should start custom action script', function(done) {
1923
pm2.start('./../fixtures/custom_actions/index.js', function() {
20-
setTimeout(done, 800);
24+
setTimeout(done, 1200);
2125
});
2226
});
2327

0 commit comments

Comments
 (0)