This commit is contained in:
tknew2 2014-05-13 15:56:13 +02:00
parent f4149e76c7
commit c326c7cbe5
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@
"description": "Modern CLI process manager for Node apps with a builtin load-balancer",
"main": "index.js",
"scripts": {
"test": "bash ./test/cli.sh && bash ./test/json_file.sh && bash ./test/harmony.sh && bash ./test/reload.sh && bash ./test/right-exit-code.sh && bash ./test/log-reload.sh && bash ./test/gracefulReload.sh && bash ./test/cli2.sh && bash ./test/misc.sh && bash ./test/watch.sh && bash ./test/watchdog.sh && bash ./test/fork.sh && bash ./test/infinite_loop.sh && NODE_ENV=test ./node_modules/mocha/bin/mocha test",
"test": "bash ./test/cli.sh && bash ./test/json_file.sh && bash ./test/harmony.sh && bash ./test/reload.sh && bash ./test/right-exit-code.sh && bash ./test/log-reload.sh && bash ./test/gracefulReload.sh && bash ./test/cli2.sh && bash ./test/misc.sh && bash ./test/watchdog.sh && bash ./test/fork.sh && bash ./test/infinite_loop.sh && NODE_ENV=test ./node_modules/mocha/bin/mocha test",
"install" : "node scripts/install.js"
},
"keywords": [

View File

@ -53,7 +53,7 @@ function ispec {
}
function should {
sleep 0.1
sleep 0.2
OUT=`$pm2 prettylist | grep -o "$2" | wc -l`
[ $OUT -eq $3 ] || fail "$1"
success "$1"

View File

@ -18,7 +18,7 @@ $pm2 start --watch server-watch.js
sleep 1
echo "setTimeout(function() { console.log('still ok') })" >> server-watch.js
echo "setTimeout(function() { console.log('still ok') }, 200)" >> server-watch.js
for (( i = 0; i <= 10; i++ )); do
sleep 0.2