Skip to content

Commit

Permalink
fix 2015 test easter egg - Happy New Year!
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Jan 2, 2015
1 parent bc404c8 commit 85d11d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/bash/log-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cd $file_path

$pm2 kill

CURRENT_YEAR=`date +"%Y"`

# CLUSTERMODE YYYY
$pm2 start echo.js --log-date-format "YYYY" -o out-rel.log --merge-logs
Expand All @@ -16,7 +17,7 @@ $pm2 start echo.js --log-date-format "YYYY" -o out-rel.log --merge-logs

sleep 2

grep "2014" out-rel.log
grep $CURRENT_YEAR out-rel.log
spec "Should have written year in log file according to format YYYY"

rm out-rel.log
Expand All @@ -42,7 +43,7 @@ $pm2 start echo.js --log-date-format "YYYY" -o out-rel.log --merge-logs -x

sleep 2

grep "2014" out-rel.log
grep $CURRENT_YEAR out-rel.log
spec "Should have written year in log file according to format YYYY"

rm out-rel.log
Expand Down

0 comments on commit 85d11d5

Please sign in to comment.