mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
fix test
This commit is contained in:
parent
f4149e76c7
commit
c326c7cbe5
@ -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": [
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user