test failed in production server
npm test
[email protected] test /home/tedxuofm/webapps/ppe/dev/pm2 bash ./test/cli.sh && bash ./test/cli2.sh && bash ./test/fork.sh && bash ./test/infinite_loop.sh && NODE_ENV=test ./node_modules/mocha/bin/mocha test
/usr/bin/wget wget Running tests:
################# DEBUG
PM2 Command = /home/tedxuofm/bin/node /home/tedxuofm/webapps/ppe/dev/pm2/bin/pm2 PM2 version = /home/tedxuofm/bin/node /home/tedxuofm/webapps/ppe/dev/pm2/bin/pm2 -V Node version = v0.8.18 arch : x64 platform : linux release : 2.6.32-379.22.1.lve1.2.17.1.el6.x86_64 type : Linux mem : 16676245504
################ !DEBUG!
------------> ✔ kill daemon
## ✘
npm ERR! Test failed. See above for more details. npm ERR! not ok code 0
◜ Processing... PM2 Process restarted ◡ Processing...PM2 Process Pm2Http9615 restarted PM2 Process echo restarted ◟ Processing...PM2 Process echo3 restarted ◜ Processing...PM2 Process echo2 restarted PM2 Process serv-clust restarted PM2 Process serv-clust restarted PM2 Process serv-clust restarted PM2 Process serv-clust restarted ◡ Processing...Error retrieving process list: Error: Looks like a process in on infinite loop, wait 10s to get more informations ######## ✘ Should restart all processes npm ERR! Test failed. See above for more details. npm ERR! not ok code 0
Yep got it, I wasn't waiting for all processes to be successfully restarted.