tests: run bcakend tests for 50 seconds instead of 60 because this is the point of optimization

This commit is contained in:
John McLear 2020-05-30 20:06:34 +00:00
parent f7e73515cd
commit 1b772c449d

View file

@ -14,6 +14,7 @@ cd "${MY_DIR}/../../../"
# This is possible because the "install" section of .travis.yml already contains # This is possible because the "install" section of .travis.yml already contains
# a call to bin/installDeps.sh # a call to bin/installDeps.sh
echo "Running Etherpad directly, assuming bin/installDeps.sh has already been run" echo "Running Etherpad directly, assuming bin/installDeps.sh has already been run"
node node_modules/ep_etherpad-lite/node/server.js "${@}" > /dev/null & node node_modules/ep_etherpad-lite/node/server.js "${@}" > /dev/null &
echo "Now I will try for 15 seconds to connect to Etherpad on http://localhost:9001" echo "Now I will try for 15 seconds to connect to Etherpad on http://localhost:9001"
@ -38,8 +39,8 @@ curl http://localhost:9001/p/minifyme -f -s > /dev/null
sleep 10 sleep 10
# run the backend tests # run the backend tests
echo "Now run the load tests for 60 seconds and if it stalls before 100 then error" echo "Now run the load tests for 50 seconds and if it stalls before 100 then error"
etherpad-loadtest -d 60 etherpad-loadtest -d 50
exit_code=$? exit_code=$?
kill $! kill $!