reflect new internal api with tests

This commit is contained in:
Unitech 2016-03-15 18:10:46 +01:00
parent 902e0991f5
commit c7f5f95918

View File

@ -31,7 +31,7 @@ describe('Max memory restart programmatic', function() {
describe('Max memory limit', function() {
it('should restart process based on memory limit (UGLY WAY)', function(done) {
pm2.start(process.cwd() + '/test/fixtures/big-array.js', {
pm2.start(process.cwd() + '/test/fixtures/json-reload/big-array.js', {
maxMemoryRestart : '10M'
}, function(err, data) {
should(err).be.null;
@ -48,7 +48,7 @@ describe('Max memory restart programmatic', function() {
it('should restart process based on memory limit (JSON WAY)', function(done) {
pm2.start({
script : process.cwd() + '/test/fixtures/big-array.js',
script : process.cwd() + '/test/fixtures/json-reload/big-array.js',
max_memory_restart : '10M'
}, function(err, data) {
should(err).be.null;