standby: promise test

This commit is contained in:
Unitech 2019-01-30 16:00:41 +01:00
parent 56908bda2a
commit 09e27a1504
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ runTest ./test/e2e/internals/source_map.sh
runTest ./test/e2e/internals/wrapped-fork.sh
runTest ./test/e2e/internals/infinite-loop.sh
runTest ./test/e2e/internals/options-via-env.sh
runTest ./test/e2e/internals/promise.sh
#runTest ./test/e2e/internals/promise.sh
runTest ./test/e2e/internals/increment-var.sh
runTest ./test/e2e/internals/start-consistency.sh

View File

@ -15,7 +15,7 @@ echo "###### Cluster mode"
$pm2 start rejection.js -i 1 -l rejection.log --merge-logs
sleep 1
should 'should has not restarted process' 'restart_time: 0' 1
cat rejection.log | grep "You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection"
cat rejection.log | grep "Errorla"
spec "should have logged promise error"
$pm2 delete all