diff --git a/test/programmatic/api.mocha.js b/test/programmatic/api.mocha.js index 924ad8d7..a3d3e096 100644 --- a/test/programmatic/api.mocha.js +++ b/test/programmatic/api.mocha.js @@ -8,7 +8,7 @@ describe('API checks', function() { describe('PM2 connect old style', function() { before(function(done) { - PM2.delete('all', done); + PM2.delete('all', function() { done() }); }); after(function(done) {