mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
reflect new internal api with tests
This commit is contained in:
parent
902e0991f5
commit
c7f5f95918
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user