File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ should 'should app been restarted' 'restart_time: 0' 0
1818
1919$pm2 restart cron
2020$pm2 reset all
21- sleep 2
21+ sleep 5
2222should ' should app been restarted after restart' ' restart_time: 0' 0
2323
2424$pm2 reset cron
@@ -46,15 +46,15 @@ $pm2 delete all
4646> mock.log
4747
4848$pm2 start cron/mock-cron.js -o mock.log
49- sleep 3
49+ sleep 4
5050should ' should app been restarted when cron in fork mode' ' restart_time: 0' 0
5151cat mock.log | grep " SIGINT"
5252spec " 1# Should cron exit call SIGINT handler"
5353
5454$pm2 delete all
5555
5656$pm2 start cron/mock-cron.js -o mock.log -i 1
57- sleep 3
57+ sleep 4
5858should ' should app been restarted when cron in cluster mode' ' restart_time: 0' 0
5959cat mock.log | grep " SIGINT"
6060spec " 2# Should cron exit call SIGINT handler"
@@ -63,7 +63,7 @@ $pm2 delete all
6363# # No exit
6464
6565$pm2 start cron/mock-cron-no-exit.js -o mock.log
66- sleep 3
66+ sleep 4
6767should ' should app been restarted' ' restart_time: 0' 0
6868cat mock.log | grep " SIGINT"
6969spec " 3# Should cron exit call SIGINT handler"
You can’t perform that action at this time.
0 commit comments