Skip to content

Commit 4d1aedf

Browse files
committed
throttle cron test
1 parent 8fae340 commit 4d1aedf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/e2e/misc/cron-system.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
2222
should '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
5050
should 'should app been restarted when cron in fork mode' 'restart_time: 0' 0
5151
cat mock.log | grep "SIGINT"
5252
spec "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
5858
should 'should app been restarted when cron in cluster mode' 'restart_time: 0' 0
5959
cat mock.log | grep "SIGINT"
6060
spec "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
6767
should 'should app been restarted' 'restart_time: 0' 0
6868
cat mock.log | grep "SIGINT"
6969
spec "3# Should cron exit call SIGINT handler"

0 commit comments

Comments
 (0)