Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ bash -c 'grep -q "This is a very bad exception" /tmp/ppmout && exit 0'
bash -c 'grep -q "Shutdown function triggered" /tmp/ppmoutshutdownfunc && exit 0'
bin/ppm status
bin/ppm stop
#TTL expiration with ttl-restart-strategy set to expire
bin/ppm start --workers=1 --bridge=PHPPM\\Tests\\TestBridge --static-directory=web --max-requests=10 --max-execution-time=15 --ttl=1 -v > /tmp/ppmout &
sleep 6
bash -c 'grep -qv "Restart worker #5501 because it reached its TTL" /tmp/ppmout || exit 1'
bin/ppm status
bin/ppm stop
Loading